public interface ServiceFactory extends NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
static Service |
create(Collection<? extends ServiceFactory> factories,
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, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
Service create(Session session) throws IOException
IOException
static Service create(Collection<? extends ServiceFactory> factories, String name, Session session) throws IOException
factories
- list of available factoriesname
- the factory name to usesession
- the referenced Session
null
if the factory is not in the listIOException
- if session creation failedcreate(Session)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.