public class CommandFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.Hashtable | commandClassesCache
This is the cache of command classes.
|
protected static com.ibm.commerce.registry.CommandRegistry | commandRegistry
Deprecated.
This protected field has been replaced by CommandRegistry.singleton()
|
protected static java.util.Hashtable | viewCommandClassesCache
This is the cache of view command classes.
|
protected static com.ibm.commerce.registry.ViewRegistry | viewRegistry
Deprecated.
This protected field has been replaced by ViewRegistry.singleton()
|
Constructor and Description |
---|
CommandFactory()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
static ECCommand | createBusinessPolicyCommand(java.lang.Long policyId)
This method searches the policy command registry for an entry corresponding to the specified policy id.
|
static ECCommand | createBusinessPolicyCommand(java.lang.Long policyId, java.lang.String interfaceName)
This method searches the policy command registry for an entry corresponding to the specified command (interface) name and policy id.
|
static ECCommand | createCommand(com.ibm.commerce.registry.CommandRegistryEntry cmdEntry)
This method instantiates an instance of a command based on the CommandRegistryEntry information.
|
static ECCommand | createCommand(com.ibm.commerce.registry.CommandRegistryEntry cmdEntry, java.lang.Integer storeId)
This method instantiates an instance of a command based on the CommandRegistryEntry information.
|
static ECCommand | createCommand(java.lang.String cmdRefKey, java.lang.Integer storeId)
This method searches the command registry for an entry corresponding to the specified command (interface) name and storeId.
|
static ECCommand | createCommand(java.lang.String cmdRefKey, java.lang.Integer storeId, boolean exceptionNeeded)
This method searches the command registry for an entry corresponding to the specified command (interface) name and store id.
|
static ECCommand | createViewCommand(com.ibm.commerce.registry.ViewRegistryEntry cmdEntry)
This method instantiates an instance of a view command based on the view registry entry information.
|
static ECCommand | createViewCommand(com.ibm.commerce.registry.ViewRegistryEntry cmdEntry, java.lang.Integer storeId)
This method instantiates an instance of a view command based on the view registry entry information.
|
static java.lang.String | getCommandClassNameFromInterface(java.lang.String commandInterfaceName)
This method returns the default implementation of an interface.
|
static com.ibm.commerce.registry.CommandRegistryEntry | locateCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId)
This method searches the command registry for an entry corresponding to the specified command (interface) name and store id.
|
static com.ibm.commerce.registry.CommandRegistryEntry | locateCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, boolean exceptionNeeded)
This method searches the command registry for an entry corresponding to the specified command (interface) name and store id.
|
static com.ibm.commerce.registry.ViewRegistryEntry | locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt)
This method searches the view registry for an entry corresponding to the specified view name, store id and device type.
|
static com.ibm.commerce.registry.ViewRegistryEntry | locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, boolean exceptionNeeded)
This method searches the view registry for an entry corresponding to the specified view name, store id and device type.
|
static com.ibm.commerce.registry.ViewRegistryEntry | locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, java.lang.Integer dftDeviceFmt)
This method searches the view registry for an entry corresponding to the specified view name, store id and device type.
|
static com.ibm.commerce.registry.ViewRegistryEntry | locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, java.lang.Integer dftDeviceFmt, boolean exceptionNeeded)
This method searches the view registry for an entry corresponding to the specified view name, store id, and device type.
|
static com.ibm.commerce.registry.ViewRegistryEntry | locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, java.lang.Integer dftDeviceFmt, boolean exceptionNeeded, javax.servlet.http.HttpServletRequest request)
This method searches the view registry for an entry corresponding to the specified view name, store id, and device type.
|
static void | setCommandRegistry(com.ibm.commerce.registry.CommandRegistry newValue)
This method sets the command registry to be used by the command factory to locate commands.
|
static void | setViewRegistry(com.ibm.commerce.registry.ViewRegistry newValue)
This method sets the view registry to be used by the command factory to locate commands.
|
protected static com.ibm.commerce.registry.CommandRegistry commandRegistry
protected static java.util.Hashtable commandClassesCache
protected static com.ibm.commerce.registry.ViewRegistry viewRegistry
protected static java.util.Hashtable viewCommandClassesCache
public CommandFactory()
public static ECCommand createBusinessPolicyCommand(java.lang.Long policyId) throws ECException
public static ECCommand createBusinessPolicyCommand(java.lang.Long policyId, java.lang.String interfaceName) throws ECException
public static ECCommand createCommand(com.ibm.commerce.registry.CommandRegistryEntry cmdEntry) throws ECException
public static ECCommand createCommand(com.ibm.commerce.registry.CommandRegistryEntry cmdEntry, java.lang.Integer storeId) throws ECException
public static ECCommand createCommand(java.lang.String cmdRefKey, java.lang.Integer storeId) throws ECException
public static ECCommand createViewCommand(com.ibm.commerce.registry.ViewRegistryEntry cmdEntry) throws ECException
public static ECCommand createViewCommand(com.ibm.commerce.registry.ViewRegistryEntry cmdEntry, java.lang.Integer storeId) throws ECException
public static java.lang.String getCommandClassNameFromInterface(java.lang.String commandInterfaceName)
public static com.ibm.commerce.registry.CommandRegistryEntry locateCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId) throws ECException
public static void setCommandRegistry(com.ibm.commerce.registry.CommandRegistry newValue)
public static void setViewRegistry(com.ibm.commerce.registry.ViewRegistry newValue)
public static com.ibm.commerce.registry.ViewRegistryEntry locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, java.lang.Integer dftDeviceFmt, boolean exceptionNeeded) throws ECException
public static com.ibm.commerce.registry.ViewRegistryEntry locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, boolean exceptionNeeded) throws ECException
public static ECCommand createCommand(java.lang.String cmdRefKey, java.lang.Integer storeId, boolean exceptionNeeded) throws ECException
public static com.ibm.commerce.registry.CommandRegistryEntry locateCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, boolean exceptionNeeded) throws ECException
public static com.ibm.commerce.registry.ViewRegistryEntry locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt) throws ECException
public static com.ibm.commerce.registry.ViewRegistryEntry locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, java.lang.Integer dftDeviceFmt) throws ECException
public static com.ibm.commerce.registry.ViewRegistryEntry locateViewCommandEntry(java.lang.String cmdRefKey, java.lang.Integer storeId, java.lang.Integer deviceFmt, java.lang.Integer dftDeviceFmt, boolean exceptionNeeded, javax.servlet.http.HttpServletRequest request) throws ECException