public static final class ServiceFactory.Utils extends Object
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.
|
public 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 failedServiceFactory.create(Session)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.