org.apache.myfaces.extensions.cdi.core.api.provider
Class ServiceProvider<T>
java.lang.Object
org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider<T>
public abstract class ServiceProvider<T>
- extends Object
Replacement for the service-loader to support java 5 and to provide additional features like
sorting and a basic version of ExpressionActivated
and injection as soon as it is available
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_CONFIG
protected static final String SERVICE_CONFIG
- See Also:
- Constant Field Values
FILE_ENCODING
protected static final String FILE_ENCODING
- See Also:
- Constant Field Values
serviceType
protected Class<T> serviceType
serviceProviderContext
protected ServiceProviderContext serviceProviderContext
SERVICE_PROVIDER_CLASS
protected static final Class<? extends ServiceProvider> SERVICE_PROVIDER_CLASS
SERVICE_PROVIDER_CONTEXT_CLASS
protected static final Class<? extends ServiceProviderContext> SERVICE_PROVIDER_CONTEXT_CLASS
ServiceProvider
protected ServiceProvider(Class<T> serviceType,
ServiceProviderContext serviceProviderContext)
loadServices
public static <S> List<S> loadServices(Class<S> serviceType)
createServiceProviderContext
public static <S> ServiceProviderContext createServiceProviderContext(Class<S> serviceType)
loadServices
public static <S> List<S> loadServices(Class<S> serviceType,
ServiceProviderContext serviceProviderContext)
loadServiceImplementations
protected abstract List<T> loadServiceImplementations()
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.