public class LoggerModuleComponent extends AbstractModuleComponent
log4j.logger.org.alfresco.modules.MyModule.DumpMessageComponent=INFO
authenticationComponent, moduleService, serviceRegistry| Constructor and Description |
|---|
LoggerModuleComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkProperties()
Checks for the presence of all generally-required properties.
|
protected void |
executeInternal()
The method that performs the actual work.
|
void |
setLogLevel(java.lang.String logLevel)
Set the level at which the bean must log the message.
|
void |
setMessage(java.lang.String message)
Set the message that must be logged.
|
equals, execute, getAppliesFromVersionNumber, getAppliesToVersionNumber, getDependsOn, getDescription, getModuleId, getName, getSinceVersionNumber, hashCode, init, isExecuteOnceOnly, setAppliesFromVersion, setAppliesToVersion, setAuthenticationComponent, setBeanName, setDependsOn, setDescription, setExecuteOnceOnly, setModuleId, setModuleService, setName, setServiceRegistry, setSinceVersion, setTenantAdminService, toStringpublic void setLogLevel(java.lang.String logLevel)
logLevel - One of the values.
The default is LogLevel#INFO.public void setMessage(java.lang.String message)
message - a message to log at the log levelprotected void checkProperties()
AbstractModuleComponentcheckProperties in class AbstractModuleComponentprotected void executeInternal()
throws java.lang.Throwable
AbstractModuleComponentexecuteInternal in class AbstractModuleComponentjava.lang.Throwable - any problems, just throw themCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.