Examples of EJBInstanceManager


Examples of org.jboss.ejb3.container.spi.EJBInstanceManager

      if (this.iDependOnSingletonBeanContainers != null && !this.iDependOnSingletonBeanContainers.isEmpty())
      {
         dependsOn = new ArrayList<SingletonEJBInstanceManager>();
         for (EJBContainer container : this.iDependOnSingletonBeanContainers)
         {
            EJBInstanceManager instanceManager = container.getBeanInstanceManager();
            if (instanceManager instanceof SingletonEJBInstanceManager)
            {
               dependsOn.add((SingletonEJBInstanceManager) instanceManager);
            }
         }
View Full Code Here

Examples of org.jboss.ejb3.container.spi.EJBInstanceManager

      if (this.iDependOnSingletonBeanContainers != null && !this.iDependOnSingletonBeanContainers.isEmpty())
      {
         dependsOn = new ArrayList<SingletonEJBInstanceManager>();
         for (EJBContainer container : this.iDependOnSingletonBeanContainers)
         {
            EJBInstanceManager instanceManager = container.getBeanInstanceManager();
            if (instanceManager instanceof SingletonEJBInstanceManager)
            {
               dependsOn.add((SingletonEJBInstanceManager) instanceManager);
            }
         }
View Full Code Here

Examples of org.jboss.ejb3.container.spi.EJBInstanceManager

    * @param container The {@link EJBContainer} which reached the {@link ControllerState#INSTALLED} state
    */
   public void start()
   {
      // create the instance
      EJBInstanceManager instanceManager = this.container.getBeanInstanceManager();
      if (instanceManager instanceof SingletonEJBInstanceManager)
      {
         SingletonEJBInstanceManager singletonBeanInstanceManager = (SingletonEJBInstanceManager) instanceManager;
         // get the instance (Note: don't call create, since create() throws an exception
         // if a singleton instance is already created)
         singletonBeanInstanceManager.get();
      }
      else
      {
         // fallback on the create() method (instead of get() on SingletonEJBInstanceManager) of the EJBInstanceManager
         instanceManager.create();
      }
      logger.debug("Created an instance of @Startup @Singleton bean: " + this.container.getEJBName());
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.