com.ibm.datapower.wamt.amp
Class CommandFactory
java.lang.Object
com.ibm.datapower.wamt.AbstractFactory
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:
com.ibm.datapower.wamt.amp.defaultProvider
: uses SOAP
messages to talk to a device using the device's XML Management Interface.
com.ibm.datapower.wamt.amp.dummyProvider
: simulates a set
of devices for management purposes only without any network traffic or real
devices. This dummyProvider is for unit testing, the source code may be
in a different repository module, and is not included in the product jars.
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 |
COPYRIGHT_2009_2013
public static final java.lang.String COPYRIGHT_2009_2013
- See Also:
- Constant Field Values
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.