Refine search
/** * * @param containerId */ static void discard(String containerId) { SINGLETON.clear(containerId); RUNNING_CONTAINER_IDS.remove(containerId); }
/** * @param id * @return the running container with the specified identifier or <code>null</code> if no such container exists */ public static WeldContainer instance(String id) { try { return SINGLETON.get(id); } catch (IllegalStateException e) { return 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; }
/** * Initialize the container for the current application deployment * * @param deploymentManager * @param deploymentServices */ public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) { Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices); Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance); }
/** * 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; }
/** * Initialize the container for the current application deployment * * @param deploymentManager * @param deploymentServices */ public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) { Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices); Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance); }
/** * 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; }
/** * Initialize the container for the current application deployment * * @param deploymentManager * @param deploymentServices */ public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) { Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices); Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance); }
/** * Get the container for the current application deployment * * @return */ public static Container instance() { return instance.get(RegistrySingletonProvider.STATIC_INSTANCE); }
/** * 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; }
/** * * @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; }
/** * * @param containerId */ static void discard(String containerId) { SINGLETON.clear(containerId); RUNNING_CONTAINER_IDS.remove(containerId); }
/** * Initialize the container for the current application deployment * * @param deploymentManager * @param deploymentServices */ public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) { Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices); Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance); }
/** * Get the container for the current application deployment * * @return */ public static Container instance() { return instance.get(RegistrySingletonProvider.STATIC_INSTANCE); }
/** * 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; }
/** * * @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; }
/** * * @param containerId */ static void discard(String containerId) { SINGLETON.clear(containerId); RUNNING_CONTAINER_IDS.remove(containerId); }
/** * Initialize the container for the current application deployment * * @param deploymentManager * @param deploymentServices */ public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices) { Container instance = new Container(RegistrySingletonProvider.STATIC_INSTANCE, deploymentManager, deploymentServices); Container.instance.set(RegistrySingletonProvider.STATIC_INSTANCE, instance); }