com.ibm.datapower.wamt
Class AbstractFactory

java.lang.Object
  extended by com.ibm.datapower.wamt.AbstractFactory
Direct Known Subclasses:
CommandFactory, NotificationCatcherFactory, RepositoryFactory, SOAPHelperFactory, SOAPHelperFactory, SOMACommandFactory

public abstract class AbstractFactory
extends java.lang.Object

A common implementation of a class factory, it can be extended to create specific factories. In the javadoc refer to the list of known subclasses for a list of classes where this is used. This abstract factory can be configured to return singletons or create new objects upon each invocation. It uses reflection to obtain and validate any named class. If you wish to use this, look at the methods with the protected access modifier, especially getUntypedInstance. (Note: the default Ant script may be configured to generate javadoc for only public methods and not for protected methods, so the javadoc for getUntypedInstance may not be generated automatically.)


Field Summary
static java.lang.String COPYRIGHT_2009_2013
           
static boolean NON_SINGLETON
          When the factory is invoked, it should create a new instance of the object even if one already exists.
static boolean SINGLETON
          When the factory is invoked, it should find an existing object and return it.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final boolean SINGLETON
When the factory is invoked, it should find an existing object and return it. If no object already exists, it should create one and cache it.

See Also:
Constant Field Values

NON_SINGLETON

public static boolean NON_SINGLETON
When the factory is invoked, it should create a new instance of the object even if one already exists.


COPYRIGHT_2009_2013

public static final java.lang.String COPYRIGHT_2009_2013
See Also:
Constant Field Values


© Copyright IBM Corp. 2006, 2010 All Rights Reserved.