Skip navigation links
com.essbase.eas.framework.server.application
Class DefaultCommandFactory
java.lang.Object
com.essbase.eas.framework.server.application.DefaultApplicationPart
com.essbase.eas.framework.server.application.DefaultCommandFactory
- All Implemented Interfaces:
- ApplicationPart, CommandFactory
-
public class DefaultCommandFactory
- extends DefaultApplicationPart
- implements CommandFactory
Provides a default implementation of the CommandFactory interface.
- Since:
- 6.5.3
- Version:
- 6.5.3
- Author:
- Hank Cox, Painted Word
| Fields inherited from class com.essbase.eas.framework.server.application.DefaultApplicationPart |
CHAIN_SEPARATOR, manager, parts, serviceContext, serviceManager, state, STATE_BEFORE_WORKERS_ASSIGNED, STATE_CONSTRUCTED, STATE_DESTROYED, STATE_INITIALIZED, STATE_MANAGED, STATE_NULL, STATE_WORKERS_ASSIGNED, STATE_WORKERS_INITIALIZED, storeService |
| Method Summary |
void |
assignWorkers(ServiceContext context)
Implementation of the DefaultApplicationPart.assignWorkers() method. |
CommandEvent |
createCommandEvent(java.lang.Object source, ServiceContext context, java.lang.String commandName, java.util.HashMap parameters)
Implementation of the CommandFactory.createCommandEvent() method. |
java.lang.Class |
getEventClass()
Returns a class object that represents the type of command events that this factory can generate. |
java.lang.Class[] |
getRoles()
Implementation of the DefaultApplicationPart.getRoles() method. |
java.lang.Object |
init(ServiceContext context)
Overrides the DefaultApplicationPart.init() method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parser
protected MetaCommandParser parser
metaCommandMap
protected java.util.HashMap metaCommandMap
DefaultCommandFactory
public DefaultCommandFactory()
- Constructs a
DefaultCommandFactory object.
getRoles
public java.lang.Class[] getRoles()
- Implementation of the
DefaultApplicationPart.getRoles() method.
-
- Specified by:
getRoles in interface ApplicationPart
-
- Returns:
- an array of class objects containing the single object for CommandFactory.class.
init
public java.lang.Object init(ServiceContext context)
throws ApplicationException
- Overrides the
DefaultApplicationPart.init() method. Initializes some private fields that depend on the service context being used for this command factory object.
-
- Specified by:
init in interface ApplicationPart
- Overrides:
init in class DefaultApplicationPart
-
- Parameters:
context - the service context for this object
- Returns:
- a reference to this command factory object
- Throws:
ApplicationException
assignWorkers
public void assignWorkers(ServiceContext context)
throws ApplicationException
- Implementation of the
DefaultApplicationPart.assignWorkers() method.
-
- Specified by:
assignWorkers in interface ApplicationPart
-
- Parameters:
context - the service context for this DefaultCommandFactory object.
- Throws:
ApplicationException
getEventClass
public java.lang.Class getEventClass()
- Returns a class object that represents the type of command events that this factory can generate.
-
- Returns:
- the class object representing the
CommandEvent class.
createCommandEvent
public CommandEvent createCommandEvent(java.lang.Object source,
ServiceContext context,
java.lang.String commandName,
java.util.HashMap parameters)
throws ApplicationException
- Implementation of the
CommandFactory.createCommandEvent() method.
-
- Specified by:
createCommandEvent in interface CommandFactory
-
- Parameters:
source - the object requesting a command be created
context - the service context for the command
commandName - the name of the command
parameters - the parameter set for the command
- Returns:
- an appropriately constructed command event
- Throws:
NoSuchCommandException - if the requested command can't be found
ApplicationException
Skip navigation links
Copyright © 2001, 2007, Oracle. All rights reserved.