com.ibm.datapower.wamt.amp
Class CommandFactory

java.lang.Object
  extended by com.ibm.datapower.wamt.AbstractFactory
      extended by com.ibm.datapower.wamt.amp.CommandFactory

public class CommandFactory
extends AbstractFactory

Gets an instance of an AMP Command implementation. It is expected that there might be more than one implementation. At the time of this writing, there are two implementations:


Field Summary
static java.lang.String COPYRIGHT_2009_2013
           
 
Fields inherited from class com.ibm.datapower.wamt.AbstractFactory
NON_SINGLETON, SINGLETON
 
Method Summary
static Commands getCommands(java.lang.String commandsImplementationClassName, java.lang.String soapHelperImplementationClassName)
          Get an instance of a class that implements the Commands interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_2009_2013

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

getCommands

public static Commands getCommands(java.lang.String commandsImplementationClassName,
                                   java.lang.String soapHelperImplementationClassName)
                            throws AMPException
Get an instance of a class that implements the Commands interface.

Parameters:
commandsImplementationClassName - the name of the class that implements the Commands interface. This name should be in the format that can be used by Class.forName(java.lang.String). This method will attempt to load the named class and invoke its one-argument constructor (the SOAPHelper classname). The named class should be on the JRE's classpath.
soapHelperImplementationClassName - the name of the class that implements the SOAPHelper interface. This name should be in the format that can be used by Class.forName(java.lang.String). This method will attempt to load the named class and invoke its zero-argument constructor. The named class should be on the JRE's classpath.
Returns:
an instance of the named class. This return value will also be cached by this factory, so additional calls to this method using the same named class will return the same instance instead of again calling the constructor of the named class.


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