public interface ServiceFactory extends NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
static Service |
create(java.util.Collection<? extends ServiceFactory> factories,
java.lang.String name,
Session session)
Create an instance of the specified name by looking up the needed factory in the list (case insensitive.
|
Service |
create(Session session) |
findByName, getName, getNameList, getNames, ofName, removeByName
static Service create(java.util.Collection<? extends ServiceFactory> factories, java.lang.String name, Session session) throws java.io.IOException
factories
- list of available factoriesname
- the factory name to usesession
- the referenced Session
null
if the factory is not in the listjava.io.IOException
- if session creation failedcreate(Session)