Class ConfigurationLifecycleDescriptor
java.lang.Object
de.iip_ecosphere.platform.configuration.ConfigurationLifecycleDescriptor
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.LifecycleDescriptor
public class ConfigurationLifecycleDescriptor
extends Object
implements de.iip_ecosphere.platform.support.LifecycleDescriptor
The lifecycle descriptor for the configuration component.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classMapping EASy executor logger information into this logger.private static enumDefines the basic logging levels in here.private classSLF4J-to-EASy logging adapter. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClassLoaderprivate booleanprivate booleanprivate de.uni_hildesheim.sse.easy.loader.ManifestLoaderFields inherited from interface de.iip_ecosphere.platform.support.LifecycleDescriptor
AAS_PRIORITY, CMD_LINE_PRIORITY, INIT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanallowLogging(String msg, Class<?> clazz, String bundleName, ConfigurationLifecycleDescriptor.LogLevel level) Returns whether logging is allowed.private static de.iip_ecosphere.platform.support.logging.LoggerReturns the logger for this class.intpriority()voidsetClassLoader(ClassLoader classLoader) Explicitly defines the class loader for loading EASy.voidshutdown()void
-
Field Details
-
loader
private de.uni_hildesheim.sse.easy.loader.ManifestLoader loader -
doLogging
private boolean doLogging -
doFilterLogs
private boolean doFilterLogs -
classLoader
-
-
Constructor Details
-
ConfigurationLifecycleDescriptor
public ConfigurationLifecycleDescriptor()
-
-
Method Details
-
allowLogging
private boolean allowLogging(String msg, Class<?> clazz, String bundleName, ConfigurationLifecycleDescriptor.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
-
setClassLoader
Explicitly defines the class loader for loading EASy. Default is the class loader of this class.- Parameters:
classLoader- the class loader, ignored if null
-
startup
- Specified by:
startupin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
shutdown
public void shutdown()- Specified by:
shutdownin interfacede.iip_ecosphere.platform.support.LifecycleDescriptor
-
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 de.iip_ecosphere.platform.support.logging.Logger getLogger()Returns the logger for this class.- Returns:
- the logger instance
-