Examples of TCCLSingletonProvider


Examples of org.jboss.weld.bootstrap.api.helpers.TCCLSingletonProvider

                    .forName("org.glassfish.javaee.full.deployment.EarClassLoader");
            earSupport = true;
        } catch (ClassNotFoundException cnfe) {
        }
        SingletonProvider.initialize(earSupport ? new ACLSingletonProvider()
                : new TCCLSingletonProvider());
    }
View Full Code Here

Examples of org.jboss.weld.bootstrap.api.helpers.TCCLSingletonProvider

      try {
          Class.forName("org.glassfish.javaee.full.deployment.EarClassLoader");
          earSupport = true;
      } catch (ClassNotFoundException ignore) {
      }
      SingletonProvider.initialize(earSupport ? new ACLSingletonProvider() : new TCCLSingletonProvider());
    }
View Full Code Here

Examples of org.jboss.weld.bootstrap.api.helpers.TCCLSingletonProvider

     * Also, we need to force Weld to use the TCCLSingletonProvider (Thread Context ClassLoader Singleton Provider)
     * instead of the default IsolatedStaticSingletonProvider. Since Jetty uses Thread Context to determine
     * classloaders for each context, we want the TCCLSingletonProvider to differentiate between contexts. There
     * is no documentation on this but it is critical in an environment where multiple webapps share the bean manager
     */
    SingletonProvider.initialize(new TCCLSingletonProvider());
    new Resource(jetty,  "WeldBeanManager"new Reference(
      "javax.enterprise.inject.spi.BeanManager",
      "org.jboss.weld.resources.ManagerObjectFactory",
      null
    ))
View Full Code Here

Examples of org.jboss.weld.bootstrap.api.helpers.TCCLSingletonProvider

                    .forName("org.glassfish.javaee.full.deployment.EarClassLoader");
            earSupport = true;
        } catch (ClassNotFoundException cnfe) {
        }
        SingletonProvider.initialize(earSupport ? new ACLSingletonProvider()
                : new TCCLSingletonProvider());
    }
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.