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(String logLevel)
Set the level at which the bean must log the message.
|
void |
setMessage(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, shutdown, toString
public void setLogLevel(String logLevel)
logLevel
- One of the LogLevel
values.
The default is LogLevel#INFO
.public void setMessage(String message)
message
- a message to log at the log level
protected void checkProperties()
AbstractModuleComponent
checkProperties
in class AbstractModuleComponent
protected void executeInternal() throws Throwable
AbstractModuleComponent
executeInternal
in class AbstractModuleComponent
Throwable
- any problems, just throw themCopyright © 2005–2017 Alfresco Software. All rights reserved.