com.ibm.datapower.wamt.soma
Class SOMACommandFactory

java.lang.Object
  extended by com.ibm.datapower.wamt.AbstractFactory
      extended by com.ibm.datapower.wamt.soma.SOMACommandFactory

public class SOMACommandFactory
extends AbstractFactory

Gets an instance of an SOMA Command implementation. At the time of this writing, there is one implementations:


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

Field Detail

COPYRIGHT_2013

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

getCommands

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

Parameters:
commandsImplementationClassName - the name of the class that implements the SOMACommands 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.