Methods Summary |
---|
protected abstract void | _run(com.vladium.util.IProperties toolProperties)
|
public synchronized void | run()
validateState ();
// load tool properties:
final IProperties toolProperties;
{
final IProperties appProperties = EMMAProperties.getAppProperties ();
toolProperties = IProperties.Factory.combine (m_propertyOverrides, appProperties);
}
if ($assert.ENABLED) $assert.ASSERT (toolProperties != null, "toolProperties is null"); // can be empty, though
final Logger current = Logger.getLogger ();
final Logger log = AppLoggers.create (m_appName, toolProperties, current);
if (log.atTRACE1 ())
{
log.trace1 ("run", "complete tool properties:");
toolProperties.list (log.getWriter ());
}
try
{
Logger.push (log);
m_log = log;
_run (toolProperties);
}
finally
{
if (m_log != null)
{
Logger.pop (m_log);
m_log = null;
}
}
|
public final synchronized void | setAppName(java.lang.String appName)
m_appName = appName;
|
public final synchronized void | setPropertyOverrides(java.util.Properties overrides)
m_propertyOverrides = EMMAProperties.wrap (overrides);
|
public final synchronized void | setPropertyOverrides(com.vladium.util.IProperties overrides)
m_propertyOverrides = overrides;
|
protected void | validateState()
// no Processor state needs validation
// [m_appName allowed to be null]
// [m_propertyOverrides allowed to be null]
|