public final class FactoryFinder extends Object
FactoryFinder.setFactory(String, String) method.PubSubServerFactory| Modifier and Type | Field and Description |
|---|---|
static String |
PUBSUBSERVER_FACTORY
The property name for the
PubSubServerFactory
class name. |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getFactory(String factoryName)
Get instance of the factory for the given Factory interface name.
|
static void |
setFactory(String factoryName,
String implName)
Set the implementation class name for given factory interface name
|
public static final String PUBSUBSERVER_FACTORY
PubSubServerFactory
class name.public static Object getFactory(String factoryName) throws PubSubServerException
factoryName - Factory interface namePubSubServerException - if error occursNullPointerException - if factoryName is nullIllegalArgumentException - if factoryName is invalid factory name.public static void setFactory(String factoryName, String implName) throws PubSubServerException
factoryName - factory interface nameimplName - implementation class namePubSubServerException - if error occursNullPointerException - if factoryName is nullIllegalArgumentException - if factoryName is invalid factory name.