| Modifier and Type | Field and Description |
|---|---|
| private static final ServiceLoaderUtil. | |
| private static final Logger | |
| private static final String | |
| private static final PrivilegedAction |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static < type of the factory class T> T | Returns: theClass object of the specified message factory;
may not be nullthe name of the factory to find, which is
a system property factoryClass, String the implementation class name, which is
to be used only if nothing else
is found; fallbackClassName)null to indicate that
there is no fallback class nameFinds the implementation |
| private static <T> T | |
| private static ClassLoader | |
| private static ClassLoader | |
| private static boolean | |
| private static <T> T | |
| private static <T> T | |
| pack-priv static URL | |
| pack-priv static URL | Returns: the URL for the class or null if it wasn't foundThe class to search for clazz, ClassLoader The ClassLoader to search. If this parameter is null, then the
system class loader will be searched loader)Search the given ClassLoader for an instance of the specified class and return a string representation of the URL that points to the resource. |
| EXCEPTION_HANDLER | back to summary |
|---|---|
| private static final ServiceLoaderUtil. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| OSGI_SERVICE_LOADER_CLASS_NAME | back to summary |
|---|---|
| private static final String OSGI_SERVICE_LOADER_CLASS_NAME | |
| propertyAction | back to summary |
|---|---|
| private static final PrivilegedAction<String> propertyAction | |
| FactoryFinder | back to summary |
|---|---|
| pack-priv FactoryFinder() | |
| find | back to summary |
|---|---|
| pack-priv static <T> T find(Class<T> factoryClass, String fallbackClassName) Finds the implementation This method is package private so that this code can be shared.
| |
| fromSystemProperty | back to summary |
|---|---|
| private static <T> T fromSystemProperty(String factoryId, String fallbackClassName, ClassLoader classLoader) | |
| getClassClassLoader | back to summary |
|---|---|
| private static ClassLoader getClassClassLoader(final Class<?> c) | |
| getSystemClassLoader | back to summary |
|---|---|
| private static ClassLoader getSystemClassLoader() | |
| isOsgi | back to summary |
|---|---|
| private static boolean isOsgi() | |
| lookupUsingOSGiServiceLoader | back to summary |
|---|---|
| private static <T> T lookupUsingOSGiServiceLoader(String factoryId) | |
| newInstance | back to summary |
|---|---|
| private static <T> T newInstance(String className, String defaultImplClassName, ClassLoader classLoader) | |
| which | back to summary |
|---|---|
| pack-priv static URL which(Class<?> clazz) Get the URL for the Class from it's ClassLoader.
Convenience method for | |
| which | back to summary |
|---|---|
| pack-priv static URL which(Class<?> clazz, ClassLoader loader) Search the given ClassLoader for an instance of the specified class and return a string representation of the URL that points to the resource.
| |