public StandaloneLifeCycle() { this(null, WebBeansLoggerFacade.getLogger(StandaloneLifeCycle.class)); }
/** * Creates a new lifecycle instance and initializes * the instance variables. */ public WebContainerLifecycle() { super(null); this.logger = WebBeansLoggerFacade.getLogger(WebContainerLifecycle.class); }
/** * Creates a new lifecycle instance and initializes * the instance variables. */ public WebContainerLifecycle(WebBeansContext webBeansContext) { super(null, webBeansContext); this.logger = WebBeansLoggerFacade.getLogger(WebContainerLifecycle.class); }
/** * The Logger should really only be used to log errors! */ protected synchronized Logger getLogger() { if (logger == null) { logger = WebBeansLoggerFacade.getLogger(getClass()); } return logger; }
@Override public void close() throws IOException { reject = true; tracker.forEach(r -> { try { r.run(); } catch (RuntimeException re) { WebBeansLoggerFacade.getLogger(NotificationManager.class).warning(re.getMessage()); } }); }
WebBeansLoggerFacade.getLogger(Unsafe.class) .info("Cannot get sun.misc.Unsafe - will use newInstance() instead!"); return null;