Class ConfigurationLifecycleDescriptor

java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.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
  • Field Details

    • loader

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

      private boolean doLogging
    • doFilterLogs

      private boolean doFilterLogs
    • classLoader

      private ClassLoader 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 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
    • setClassLoader

      public void setClassLoader(ClassLoader classLoader)
      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

      public void startup(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 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 de.iip_ecosphere.platform.support.logging.Logger getLogger()
      Returns the logger for this class.
      Returns:
      the logger instance