public static class ServiceFactory.Utils
extends java.lang.Object
| Constructor and Description |
|---|
ServiceFactory.Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Service |
create(java.util.List<ServiceFactory> factories,
java.lang.String name,
Session session)
Create an instance of the specified name by looking up the needed factory
in the list.
|
public static Service create(java.util.List<ServiceFactory> factories, java.lang.String name, Session session) throws java.io.IOException
factories - list of available factoriesname - the factory name to usenull if the factory is not in the listjava.io.IOExceptionCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.