genie.core
Class Manager
java.lang.Object
genie.commons.chain.CommandRunner
genie.core.Manager
- All Implemented Interfaces:
- IManagerConstants
- Direct Known Subclasses:
- Engine, NestingContextManager
public class Manager
- extends CommandRunner
- implements IManagerConstants
- Author:
- T. Kia Ntoni
5 janv. 2005
Manager @version
Fields inherited from interface genie.core.IManagerConstants |
GENIE_CORE_DIGESTER_RULESET, GENIE_CORE_MANAGER_CATALOG, GENIE_CORE_MANAGER_CONTEXT, GENIE_CORE_MANAGER_ENGINE, GENIE_CORE_MANAGER_ENGINE_ARGS, GENIE_CORE_MANAGER_ENGINE_CATALOG, GENIE_CORE_MANAGER_ENGINE_CONTEXT, GENIE_CORE_MANAGER_ENGINE_TARGET_HANDLER, GENIE_CORE_MANAGER_ENGINE_TARGET_PROJECT, GENIE_CORE_MANAGER_ENGINE_TARGET_TASK, GENIE_CORE_MANAGER_GENIE, GENIE_CORE_MANAGER_GENIE_CATALOG, GENIE_CORE_MANAGER_GENIE_CONTEXT, GENIE_CORE_MANAGER_POSTPROCESS, GENIE_CORE_MANAGER_POSTPROCESS_ENABLED, GENIE_CORE_MANAGER_PREPROCESS, GENIE_CORE_MANAGER_PREPROCESS_ENABLED, GENIE_CORE_MANAGER_PROCESS, GENIE_CORE_MANAGER_PROCESS_ENABLED, GENIE_CORE_MANAGER_PROJECT, GENIE_CORE_MANAGER_PROJECT_CATALOG, GENIE_CORE_MANAGER_PROJECT_CONTEXT, GENIE_CORE_MANAGER_TARGET_ALL, GENIE_CORE_MANAGER_TARGETS, GENIE_CORE_MANAGER_TASK, GENIE_CORE_MANAGER_TASK_CATALOG, GENIE_CORE_MANAGER_TASK_CONTEXT, GENIE_CORE_PROPERTIES |
Method Summary |
void |
addCommand(java.lang.String name,
Command command)
|
void |
addContext(java.lang.String key,
Context value)
|
protected void |
debug(java.lang.String message)
|
protected void |
debug(java.lang.String message,
java.lang.Throwable throwable)
|
protected void |
error(java.lang.String message)
|
protected void |
error(java.lang.String message,
java.lang.Throwable throwable)
|
boolean |
execute(Context context)
|
void |
expose(Context parent,
Context ctxt,
java.lang.String ctxtName)
|
protected void |
fatal(java.lang.String message)
|
protected void |
fatal(java.lang.String message,
java.lang.Throwable throwable)
|
Command |
getCommand(java.lang.String name)
|
java.util.Iterator |
getCommandNames()
|
Document |
getConfig()
|
static java.lang.String |
getConfigKey(Context context)
|
Context |
getContext(java.lang.String key)
|
static java.lang.String |
getContextKey(Context context)
|
java.util.Iterator |
getContextsNames()
|
Manager |
getParent()
|
java.util.Properties |
getProperties()
|
static java.lang.String |
getPropertiesKey(Context context)
|
protected void |
info(java.lang.String message)
|
protected void |
info(java.lang.String message,
java.lang.Throwable throwable)
|
protected boolean |
isActive(java.lang.String id)
|
static boolean |
isConfigSettingDisabled(Context context)
|
boolean |
isConfigSettingEnabled(Context context)
|
static boolean |
isExposeConfigDisabled(Context context)
return true if "false" found as value under the context key "genie.core.config.expose"
Otherwise, return false. |
boolean |
isExposeConfigEnabled(Context context)
return false if "false" found as value under the context key "genie.core.config.expose". |
static boolean |
isExposeContextEnabled(Context context)
|
static boolean |
isExposePropertiesDisabled(Context context)
|
boolean |
isExposePropertiesEnabled(Context context)
|
static boolean |
isInheritConfigDisabled(Context context)
|
boolean |
isInheritConfigEnabled(Context context)
|
static boolean |
isInheritContextEnabled(Context context)
|
static boolean |
isInheritPropertiesDisabled(Context context)
|
boolean |
isInheritPropertiesEnabled(Context context)
|
protected boolean |
isLenient(java.lang.String id)
|
protected boolean |
isLoggingEnabled(Context context)
|
protected boolean |
isNullContextEnabled(java.lang.String id)
|
static boolean |
isPropertiesSettingDisabled(Context context)
|
boolean |
isPropertiesSettingEnabled(Context context)
|
protected void |
logTypesReset(java.lang.Object current)
|
void |
setConfig(Document configDoc)
|
void |
setConfigAndProperties(Context context,
Command command,
java.lang.String cmdName)
|
void |
setParent(Manager parent)
|
void |
setProperties(java.util.Properties properties)
|
protected void |
trace(java.lang.String message)
|
protected void |
trace(java.lang.String message,
java.lang.Throwable throwable)
|
protected void |
warn(java.lang.String message)
|
protected void |
warn(java.lang.String message,
java.lang.Throwable throwable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Log log
config
protected Document config
properties
protected java.util.Properties properties
parent
protected Manager parent
processedTypeLog
protected java.lang.String processedTypeLog
testedTypeLog
protected java.lang.String testedTypeLog
DEFAULT_CONFIG_KEY
public static final java.lang.String DEFAULT_CONFIG_KEY
- See Also:
- Constant Field Values
CONFIG_KEY
public static final java.lang.String CONFIG_KEY
- See Also:
- Constant Field Values
CONFIG_EXPOSE_KEY
public static final java.lang.String CONFIG_EXPOSE_KEY
- See Also:
- Constant Field Values
CONFIG_INHERIT_KEY
public static final java.lang.String CONFIG_INHERIT_KEY
- See Also:
- Constant Field Values
CONFIG_SETTING_KEY
public static final java.lang.String CONFIG_SETTING_KEY
- See Also:
- Constant Field Values
DEFAULT_PROPERTIES_KEY
public static final java.lang.String DEFAULT_PROPERTIES_KEY
- See Also:
- Constant Field Values
PROPERTIES_KEY
public static final java.lang.String PROPERTIES_KEY
- See Also:
- Constant Field Values
PROPERTIES_EXPOSE_KEY
public static final java.lang.String PROPERTIES_EXPOSE_KEY
- See Also:
- Constant Field Values
PROPERTIES_INHERIT_KEY
public static final java.lang.String PROPERTIES_INHERIT_KEY
- See Also:
- Constant Field Values
PROPERTIES_SETTING_KEY
public static final java.lang.String PROPERTIES_SETTING_KEY
- See Also:
- Constant Field Values
DEFAULT_CONTEXT_KEY
public static final java.lang.String DEFAULT_CONTEXT_KEY
- See Also:
- Constant Field Values
CONTEXT_KEY
public static final java.lang.String CONTEXT_KEY
- See Also:
- Constant Field Values
CONTEXT_EXPOSE_KEY
public static final java.lang.String CONTEXT_EXPOSE_KEY
- See Also:
- Constant Field Values
CONTEXT_INHERIT_KEY
public static final java.lang.String CONTEXT_INHERIT_KEY
- See Also:
- Constant Field Values
Manager
public Manager()
addCommand
public void addCommand(java.lang.String name,
Command command)
getCommand
public Command getCommand(java.lang.String name)
getCommandNames
public java.util.Iterator getCommandNames()
addContext
public void addContext(java.lang.String key,
Context value)
getContext
public Context getContext(java.lang.String key)
getContextsNames
public java.util.Iterator getContextsNames()
isActive
protected boolean isActive(java.lang.String id)
isLenient
protected boolean isLenient(java.lang.String id)
isNullContextEnabled
protected boolean isNullContextEnabled(java.lang.String id)
isLoggingEnabled
protected boolean isLoggingEnabled(Context context)
getConfig
public Document getConfig()
- Returns:
- Returns the config.
setConfig
public void setConfig(Document configDoc)
- Parameters:
config
- The config to set.
logTypesReset
protected void logTypesReset(java.lang.Object current)
debug
protected void debug(java.lang.String message)
debug
protected void debug(java.lang.String message,
java.lang.Throwable throwable)
trace
protected void trace(java.lang.String message,
java.lang.Throwable throwable)
trace
protected void trace(java.lang.String message)
warn
protected void warn(java.lang.String message,
java.lang.Throwable throwable)
warn
protected void warn(java.lang.String message)
error
protected void error(java.lang.String message,
java.lang.Throwable throwable)
error
protected void error(java.lang.String message)
info
protected void info(java.lang.String message,
java.lang.Throwable throwable)
info
protected void info(java.lang.String message)
fatal
protected void fatal(java.lang.String message,
java.lang.Throwable throwable)
fatal
protected void fatal(java.lang.String message)
getProperties
public java.util.Properties getProperties()
- Returns:
- Returns the properties.
setProperties
public void setProperties(java.util.Properties properties)
- Parameters:
properties
- The properties to set.
isExposeConfigDisabled
public static boolean isExposeConfigDisabled(Context context)
- return true if "false" found as value under the context key "genie.core.config.expose"
Otherwise, return false.
- Parameters:
context
-
- Returns:
isExposeConfigEnabled
public boolean isExposeConfigEnabled(Context context)
- return false if "false" found as value under the context key "genie.core.config.expose".
If the key "genie.core.config.expose" not found in the context,
return false if exists as property key with the same value.
Otherwise, return true
- Parameters:
context
-
- Returns:
isInheritConfigDisabled
public static boolean isInheritConfigDisabled(Context context)
isInheritConfigEnabled
public boolean isInheritConfigEnabled(Context context)
isConfigSettingDisabled
public static boolean isConfigSettingDisabled(Context context)
isConfigSettingEnabled
public boolean isConfigSettingEnabled(Context context)
getConfigKey
public static java.lang.String getConfigKey(Context context)
isExposePropertiesDisabled
public static boolean isExposePropertiesDisabled(Context context)
isExposePropertiesEnabled
public boolean isExposePropertiesEnabled(Context context)
isInheritPropertiesDisabled
public static boolean isInheritPropertiesDisabled(Context context)
isInheritPropertiesEnabled
public boolean isInheritPropertiesEnabled(Context context)
isPropertiesSettingDisabled
public static boolean isPropertiesSettingDisabled(Context context)
isPropertiesSettingEnabled
public boolean isPropertiesSettingEnabled(Context context)
getPropertiesKey
public static java.lang.String getPropertiesKey(Context context)
setConfigAndProperties
public void setConfigAndProperties(Context context,
Command command,
java.lang.String cmdName)
throws java.lang.Exception
- Throws:
java.lang.Exception
execute
public boolean execute(Context context)
throws java.lang.Exception
- Specified by:
execute
in class CommandRunner
- Throws:
java.lang.Exception
getParent
public Manager getParent()
- Returns:
- Returns the parent.
setParent
public void setParent(Manager parent)
- Parameters:
parent
- The parent to set.
isExposeContextEnabled
public static boolean isExposeContextEnabled(Context context)
isInheritContextEnabled
public static boolean isInheritContextEnabled(Context context)
getContextKey
public static java.lang.String getContextKey(Context context)
expose
public void expose(Context parent,
Context ctxt,
java.lang.String ctxtName)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2004-2005 Genies Projects. All Rights Reserved.