de.enough.polish.log
Class DefaultLogHandler
java.lang.Object
de.enough.polish.Extension
de.enough.polish.log.LogHandler
de.enough.polish.log.DefaultLogHandler
public class DefaultLogHandler
- extends LogHandler
The default log handler just sets preprocessing directives according to the given parameters.
Copyright Enough Software 2005
history
26-Apr-2005 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
| Methods inherited from class de.enough.polish.Extension |
configure, executeAntTarget, executeAntTarget, finalize, getAntProject, getAutoStartCondition, getEnvironment, getExtensionDefinition, getExtensionSetting, getInstance, getParameterValue, getType, init, isConditionFulfilled, notifyBuildEnd, notifyBuildStart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLogHandler
public DefaultLogHandler()
- Creates a new default log handler
setParameters
public void setParameters(Variable[] parameter,
File baseDir)
initialize
public void initialize(Device device,
Locale locale,
Environment env)
- Description copied from class:
Extension
- Initializes this extension for a new device or a new locale.
The default implementation doesn't do anything.
- Overrides:
initialize in class Extension
- Parameters:
device - the current devicelocale - the current locale, can be nullenv - the environment/configuration
getClientLogHandlerClass
protected String getClientLogHandlerClass(Environment env)
- Retrieves the name of the corresponding handler-class that runs on the J2ME client.
The client class can be defined either with the "clientClass" parameter of the <handler>-element
or by the "clientClass" setting in extensions.xml/custom-extensions.xml.
- Returns:
- the client log handler class
- Throws:
IllegalStateException - when the client log handler class is not defined anywhere
NullPointerException - when the setting is null