public static class ServiceFactory.Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static Service |
create(List<ServiceFactory> factories,
String name,
Session session)
Create an instance of the specified name by looking up the needed factory
in the list.
|
public static Service create(List<ServiceFactory> factories, String name, Session session) throws IOException
factories
- list of available factoriesname
- the factory name to usenull
if the factory is not in the listIOException
Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.