Examples of BeanManager


Examples of javax.enterprise.inject.spi.BeanManager

        final CdiContainer container = CdiContainerLoader.getCdiContainer();
        container.boot();

        try
        {
            final BeanManager beanManager = container.getBeanManager();
            assertEquals("foo", Foo.class.cast(beanManager.getReference(beanManager.resolve(beanManager.getBeans(Foo.class)), Foo.class, null)).name());
        }
        finally
        {
            container.shutdown();
        }
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager

     * Tests {@link JndiUtils#lookup(String, Class)} by looking up the {@link BeanManager}
     */
    @Test
    public void testLookup()
    {
        BeanManager beanManager = JndiUtils.lookup("java:comp/BeanManager", BeanManager.class);
        assertNotNull("JNDI lookup failed", beanManager);
    }
View Full Code Here

Examples of org.jboss.ejb3.context.spi.BeanManager

      // and the spec mandates that this API throw an exception when invoked during injection.
      // Internal implementation (like injectors) of EJB3 will require to get hold of the
      // TimerService during injection (to actually do the injection). Hence we bypass the user
      // API and instead use the BeanManager.getTimerService() which doesn't have a restriction
      // on using it during injection.
      BeanManager beanManager =  currentEJBContext.getManager();
      // now finally get hold of the timerservice
      return beanManager.getTimerService();
   }
View Full Code Here

Examples of org.jruby.management.BeanManager

        this.err                = config.getError();
        this.objectSpaceEnabled = config.isObjectSpaceEnabled();
        this.profile            = config.getProfile();
        this.currentDirectory   = config.getCurrentDirectory();
        this.kcode              = config.getKCode();
        this.beanManager        = new BeanManager(this, config.isManagementEnabled());
        this.jitCompiler        = new JITCompiler(this);
        this.parserStats        = new ParserStats(this);
       
        this.beanManager.register(new Config(this));
        this.beanManager.register(parserStats);
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.