Class ConfigurationLifecycleDescriptor
- java.lang.Object
-
- de.iip_ecosphere.platform.configuration.ConfigurationLifecycleDescriptor
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.LifecycleDescriptor
public class ConfigurationLifecycleDescriptor extends java.lang.Object implements de.iip_ecosphere.platform.support.LifecycleDescriptorThe lifecycle descriptor for the configuration component.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classConfigurationLifecycleDescriptor.ExecLoggerMapping EASy executor logger information into this logger.private classConfigurationLifecycleDescriptor.Slf4EasyLoggerSLF4J-to-EASy logging adapter.
-
Field Summary
Fields Modifier and Type Field Description private booleandoFilterLogsprivate booleandoLoggingprivate de.uni_hildesheim.sse.easy.loader.ListLoaderloaderprivate static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description ConfigurationLifecycleDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanallowLogging(java.lang.String msg, java.lang.Class<?> clazz, java.lang.String bundleName, org.apache.log4j.lf5.LogLevel level)Returns whether logging is allowed.private static org.slf4j.LoggergetLogger()Returns the logger for this class.java.lang.ThreadgetShutdownHook()intpriority()voidshutdown()voidstartup(java.lang.String[] args)
-
-
-
Method Detail
-
allowLogging
private boolean allowLogging(java.lang.String msg, java.lang.Class<?> clazz, java.lang.String bundleName, org.apache.log4j.lf5.LogLevel level)Returns whether logging is allowed.- Parameters:
msg- the messageclazz- the originating classbundleName- the originating bundlelevel- the logging level- Returns:
truefor log the message,falsefor consume and be quiet
-
startup
public void startup(java.lang.String[] args)
- Specified by:
startupin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
getShutdownHook
public java.lang.Thread getShutdownHook()
- Specified by:
getShutdownHookin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
priority
public int priority()
- Specified by:
priorityin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
getLogger
private static org.slf4j.Logger getLogger()
Returns the logger for this class.- Returns:
- the logger instance
-
-