/** * * @return <code>true</code> if the container was initialized completely and is not shut down yet, <code>false</code> otherwise */ public boolean isRunning() { return SINGLETON.isSet(id) && instance != null; }
/** * * @return <code>true</code> if the container was initialized completely and is not shut down yet, <code>false</code> otherwise */ public boolean isRunning() { return SINGLETON.isSet(id) && instance != null; }
/** * * @return <code>true</code> if the container was initialized completely and is not shut down yet, <code>false</code> otherwise */ public boolean isRunning() { return SINGLETON.isSet(id) && instance != null; }
public static boolean isSet(String contextId) { return instance.isSet(contextId); }
/** * * @return <code>true</code> if the container was initialized completely and is not shut down yet, <code>false</code> otherwise */ public boolean isRunning() { return SINGLETON.isSet(id) && instance != null; }
public static boolean isSet(String contextId) { return instance.isSet(contextId); }
public static boolean isSet(String contextId) { return instance.isSet(contextId); }
public static boolean isSet(String contextId) { return instance.isSet(contextId); }
public static boolean isSet(String contextId) { return instance.isSet(contextId); }
private void checkIsRunning() { if (!SINGLETON.isSet(id)) { if (WeldSELogger.LOG.isTraceEnabled()) { WeldSELogger.LOG.tracev("Spurious call to shutdown from: {0}", (Object[]) Thread.currentThread().getStackTrace()); } throw WeldSELogger.LOG.weldContainerAlreadyShutDown(id); } }
private void checkIsRunning() { if (!SINGLETON.isSet(id)) { if (WeldSELogger.LOG.isTraceEnabled()) { WeldSELogger.LOG.tracev("Spurious call to shutdown from: {0}", (Object[]) Thread.currentThread().getStackTrace()); } throw WeldSELogger.LOG.weldContainerAlreadyShutDown(id); } }
private void checkIsRunning() { if (!SINGLETON.isSet(id)) { if (WeldSELogger.LOG.isTraceEnabled()) { WeldSELogger.LOG.tracev("Spurious call to shutdown from: {0}", (Object[]) Thread.currentThread().getStackTrace()); } throw WeldSELogger.LOG.weldContainerAlreadyShutDown(id); } }
private void checkIsRunning() { if (!SINGLETON.isSet(id)) { if (WeldSELogger.LOG.isTraceEnabled()) { WeldSELogger.LOG.tracev("Spurious call to shutdown from: {0}", (Object[]) Thread.currentThread().getStackTrace()); } throw WeldSELogger.LOG.weldContainerAlreadyShutDown(id); } }
/** * Start the initialization. * * @param id * @param manager * @param bootstrap * @return the initialized Weld container */ static WeldContainer startInitialization(String id, Deployment deployment, Bootstrap bootstrap) { if (SINGLETON.isSet(id)) { throw WeldSELogger.LOG.weldContainerAlreadyRunning(id); } WeldContainer weldContainer = new WeldContainer(id, deployment, bootstrap); SINGLETON.set(id, weldContainer); RUNNING_CONTAINER_IDS.add(id); return weldContainer; }
/** * Start the initialization. * * @param id * @param manager * @param bootstrap * @return the initialized Weld container */ static WeldContainer startInitialization(String id, Deployment deployment, Bootstrap bootstrap) { if (SINGLETON.isSet(id)) { throw WeldSELogger.LOG.weldContainerAlreadyRunning(id); } WeldContainer weldContainer = new WeldContainer(id, deployment, bootstrap); SINGLETON.set(id, weldContainer); RUNNING_CONTAINER_IDS.add(id); return weldContainer; }
/** * Start the initialization. * * @param id * @param manager * @param bootstrap * @return the initialized Weld container */ static WeldContainer startInitialization(String id, Deployment deployment, Bootstrap bootstrap) { if (SINGLETON.isSet(id)) { throw WeldSELogger.LOG.weldContainerAlreadyRunning(id); } WeldContainer weldContainer = new WeldContainer(id, deployment, bootstrap); SINGLETON.set(id, weldContainer); RUNNING_CONTAINER_IDS.add(id); return weldContainer; }
/** * Start the initialization. * * @param id * @param manager * @param bootstrap * @return the initialized Weld container */ static WeldContainer startInitialization(String id, Deployment deployment, Bootstrap bootstrap) { if (SINGLETON.isSet(id)) { throw WeldSELogger.LOG.weldContainerAlreadyRunning(id); } WeldContainer weldContainer = new WeldContainer(id, deployment, bootstrap); SINGLETON.set(id, weldContainer); RUNNING_CONTAINER_IDS.add(id); return weldContainer; }
public static boolean available(String contextId) { boolean b = instance.isSet(contextId) && instance(contextId) != null && instance(contextId).getState().isAvailable(); return b; }
public static boolean available() { String id = RegistrySingletonProvider.STATIC_INSTANCE; return instance.isSet(id) && instance.get(id) != null && instance.get(id).getState().isAvailable(); }