Class ConfigurationLifecycleDescriptor

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.LifecycleDescriptor

    public class ConfigurationLifecycleDescriptor
    extends java.lang.Object
    implements de.iip_ecosphere.platform.support.LifecycleDescriptor
    The lifecycle descriptor for the configuration component.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean doFilterLogs  
      private boolean doLogging  
      private de.uni_hildesheim.sse.easy.loader.ListLoader loader  
      private static org.slf4j.Logger logger  
      • Fields inherited from interface de.iip_ecosphere.platform.support.LifecycleDescriptor

        AAS_PRIORITY, CMD_LINE_PRIORITY, INIT_PRIORITY
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      private static org.slf4j.Logger getLogger()
      Returns the logger for this class.
      java.lang.Thread getShutdownHook()  
      int priority()  
      void shutdown()  
      void startup​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static org.slf4j.Logger logger
      • loader

        private de.uni_hildesheim.sse.easy.loader.ListLoader loader
      • doLogging

        private boolean doLogging
      • doFilterLogs

        private boolean doFilterLogs
    • Constructor Detail

      • ConfigurationLifecycleDescriptor

        public ConfigurationLifecycleDescriptor()
    • 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 message
        clazz - the originating class
        bundleName - the originating bundle
        level - the logging level
        Returns:
        true for log the message, false for consume and be quiet
      • startup

        public void startup​(java.lang.String[] args)
        Specified by:
        startup in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • getShutdownHook

        public java.lang.Thread getShutdownHook()
        Specified by:
        getShutdownHook in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • priority

        public int priority()
        Specified by:
        priority in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • getLogger

        private static org.slf4j.Logger getLogger()
        Returns the logger for this class.
        Returns:
        the logger instance