com.ibm.portal.sitemanagement.command
Interface SitemanagementCommandFactory
public interface SitemanagementCommandFactory
This interface provides access to
SitemanagementCommand objects to
avoid direct object creation. The command returned can only be executed once.
Subseqent commands require additional invocation of the createCommand() method.
- Since:
- 6.1
createCommand
<T extends SitemanagementCommand> T createCommand(java.lang.Class<T> aCommandClass,
SitemanagementCommandContext<? extends T> aContext)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
- Returns a Command object. The command returned can only be executed once.
Subseqent commands require additional invocation of the createCommand()
method.
- Parameters:
- aCommandClass - specifying the Command class type
- aContext - context for building the command
- Returns:
- command object
- Throws:
- java.lang.IllegalAccessException
- java.lang.InstantiationException