S
- The type of the serviceP
- The type of the service providerpublic static interface SandboxServiceLoader.ServiceDescriptor<P,S>
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getFallbackClassLoaderFrom()
Returns a class whose class loader is the fallback class loader when
the current thread's class loader is not available.
|
java.lang.Class<P> |
getProviderClass()
Returns the type of the service provider.
|
S |
getService(P provider)
Gets a service object from a provider.
|
S |
newFallbackService()
Returns a fallback service object in case
getService
returns null or an error occurs while loading the service. |
java.lang.Class<P> getProviderClass()
S getService(P provider)
provider
- the service providerS newFallbackService()
getService
returns null or an error occurs while loading the service.getService
returns null or an error occurs while loading the servicejava.lang.Class getFallbackClassLoaderFrom()