| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
ServiceFactory.RequiresConfiguration  | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
create(ServiceCreationConfiguration<T,?> configuration)
Creates an instance of the service using the passed in  
ServiceCreationConfiguration. | 
java.lang.Class<? extends T> | 
getServiceType()
Queries a  
ServiceFactory to know which concrete Service type it produces. | 
default boolean | 
isMandatory()
Returns  
true if this factory's services are mandatory in all environments. | 
default int | 
rank()
Returns an optional ranking integer is used to choose a service factory when multiple factories are available for
 the same service type. 
 | 
default boolean isMandatory()
true if this factory's services are mandatory in all environments.true if this factory's services are mandatorydefault int rank()
T create(ServiceCreationConfiguration<T,?> configuration)
ServiceCreationConfiguration.
 
 Note that a null configuration may be supported or even required by a service implementation.
configuration - the creation configuration, can be null for some servicesstarted