public abstract class ServiceProvider<T> extends Object
ExpressionActivated
and injection as soon as it is availableModifier and Type | Field and Description |
---|---|
protected static String |
FILE_ENCODING |
protected static String |
SERVICE_CONFIG |
protected static Class<? extends ServiceProvider> |
SERVICE_PROVIDER_CLASS |
protected static Class<? extends ServiceProviderContext> |
SERVICE_PROVIDER_CONTEXT_CLASS |
protected ServiceProviderContext |
serviceProviderContext |
protected Class<T> |
serviceType |
Modifier | Constructor and Description |
---|---|
protected |
ServiceProvider(Class<T> serviceType,
ServiceProviderContext serviceProviderContext) |
Modifier and Type | Method and Description |
---|---|
static <S> ServiceProviderContext |
createServiceProviderContext(Class<S> serviceType) |
protected abstract List<T> |
loadServiceImplementations() |
static <S> List<S> |
loadServices(Class<S> serviceType) |
static <S> List<S> |
loadServices(Class<S> serviceType,
ServiceProviderContext serviceProviderContext) |
protected static final String SERVICE_CONFIG
protected static final String FILE_ENCODING
protected ServiceProviderContext serviceProviderContext
protected static final Class<? extends ServiceProvider> SERVICE_PROVIDER_CLASS
protected static final Class<? extends ServiceProviderContext> SERVICE_PROVIDER_CONTEXT_CLASS
protected ServiceProvider(Class<T> serviceType, ServiceProviderContext serviceProviderContext)
public static <S> ServiceProviderContext createServiceProviderContext(Class<S> serviceType)
public static <S> List<S> loadServices(Class<S> serviceType, ServiceProviderContext serviceProviderContext)
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.