Esempio n. 1
0
 /*
  * Default constructor. This is not public because there should be only one
  * {@code LogManager} instance, which can be get by
  * {@code LogManager.getLogManager()}. This is protected so that
  * application can subclass the object.
  */
 protected LogManager()
 {
     loggers   = new Hashtable <String, Logger>();
     props     = new Properties();
     listeners = new java.beans.PropertyChangeSupport(this);
     // add shutdown hook to ensure that the associated resource will be
     // freed when JVM exits
     java.lang.Runtime.getRuntime().addShutdownHook(new IAC_SHUTDOWN_THREAD());
 }
Esempio n. 2
0
 /**
  * Default constructor. This is not public because there should be only one
  * {@code LogManager} instance, which can be get by
  * {@code LogManager.getLogManager()}. This is protected so that
  * application can subclass the object.
  */
 protected LogManager()
 {
     loggers = new Hashtable<String, Logger>();
     props = new Properties();
     listeners = new java.beans.PropertyChangeSupport(this);
     // add shutdown hook to ensure that the associated resource will be
     // freed when JVM exits
     java.lang.Runtime.getRuntime().addShutdownHook(new IAC_SHUTDOWN_THREAD());
 }