| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static < type of the service to be found. T> Object | Returns: the instance of the specified service; may not benull.the name of the factory to find, which is
a system property. factoryId, final String the implementation class name, which is
to be used only if nothing else.
is found; fallbackClassName, Class<T> null to indicate that
there is no fallback class name.service to be found. service)Finds the implementation |
| private static ClassLoader | |
| private static Object | Returns: instance of the specified class.name of the class to be instantiated. className, final ClassLoader class loader to be used. classLoader)Creates an instance of the specified class using the specified
|
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| FactoryFinder | back to summary |
|---|---|
| private FactoryFinder() | |
| find | back to summary |
|---|---|
| pack-priv static <T> Object find(final String factoryId, final String fallbackClassName, Class<T> service) throws ClassNotFoundException Finds the implementation This method is package private so that this code can be shared.
| |
| getContextClassLoader | back to summary |
|---|---|
| private static ClassLoader getContextClassLoader() | |
| newInstance | back to summary |
|---|---|
| private static Object newInstance(final String className, final ClassLoader classLoader) throws ClassNotFoundException Creates an instance of the specified class using the specified
| |