Oracle

com.bea.httppubsub
Class FactoryFinder

java.lang.Object
  extended by com.bea.httppubsub.FactoryFinder

public final class FactoryFinder
extends Object

FactoryFinder search PubSub server's factories implementation based on the factory interface name. User can replace system default factories implementations by invoking FactoryFinder.setFactory(String, String) method.

Since:
10.3.0.0
See Also:
PubSubServerFactory, PubSubConfigFactory

Field Summary
static String PUBSUBSERVER_FACTORY
          The property name for the PubSubServerFactory class name.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBSUBSERVER_FACTORY

public static final String PUBSUBSERVER_FACTORY
The property name for the PubSubServerFactory class name.

See Also:
Constant Field Values
Method Detail

getFactory

public static Object getFactory(String factoryName)
                         throws PubSubServerException
Get instance of the factory for the given Factory interface name.

Parameters:
factoryName - Factory interface name
Returns:
factory implementation object
Throws:
PubSubServerException - if error occurs
NullPointerException - if factoryName is null
IllegalArgumentException - if factoryName is invalid factory name.

setFactory

public static void setFactory(String factoryName,
                              String implName)
                       throws PubSubServerException
Set the implementation class name for given factory interface name

Parameters:
factoryName - factory interface name
implName - implementation class name
Throws:
PubSubServerException - if error occurs
NullPointerException - if factoryName is null
IllegalArgumentException - if factoryName is invalid factory name.

Documentation is available at
http://edocs.bea.com/wls/docs103
Copyright 2008 Oracle