info.magnolia.commands
Class CommandsManager
java.lang.Object
info.magnolia.cms.beans.config.ObservedManager
info.magnolia.commands.CommandsManager
public class CommandsManager
- extends ObservedManager
Manages the Commands and Catalogs.
- Version:
- $Revision: 41137 $ ($Author: gjoseph $)
- Author:
- Philipp Bracher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CATALOG
public static final String DEFAULT_CATALOG
- See Also:
- Constant Field Values
COMMAND_DELIM
public static final String COMMAND_DELIM
- See Also:
- Constant Field Values
COMMAND_TRANSFORMER
protected static Content2BeanTransformer COMMAND_TRANSFORMER
CommandsManager
public CommandsManager()
onRegister
protected void onRegister(Content node)
- Register observation for command catalogs.
- Specified by:
onRegister
in class ObservedManager
registerCatalog
protected void registerCatalog(Content node)
onClear
protected void onClear()
- Clear all catalogs.
- Specified by:
onClear
in class ObservedManager
getCommand
public org.apache.commons.chain.Command getCommand(String catalogName,
String commandName)
- Get the command.
- Parameters:
catalogName
- the catalog containing the commandcommandName
- the name of the command
- Returns:
- the command to execute
getCommand
public org.apache.commons.chain.Command getCommand(String commandName)
- Use a delimiter to separate the catalog and command name.
- Parameters:
commandName
-
- Returns:
- the command
getInstance
public static CommandsManager getInstance()
- Returns:
- Returns the instance.
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.