Package com.caucho.config.inject

Examples of com.caucho.config.inject.BeanFactory.type()


  protected void configureInstanceVariables(WebApp webApp)
    throws Throwable
  {
    InjectManager beanManager = InjectManager.create();
    BeanFactory factory = beanManager.createBeanFactory(WebApp.class);
    factory.type(WebApp.class);
    factory.type(ServletContext.class);
    // factory.stereotype(CauchoDeploymentLiteral.create());

    beanManager.addBean(factory.singleton(webApp));
View Full Code Here


    throws Throwable
  {
    InjectManager beanManager = InjectManager.create();
    BeanFactory factory = beanManager.createBeanFactory(WebApp.class);
    factory.type(WebApp.class);
    factory.type(ServletContext.class);
    // factory.stereotype(CauchoDeploymentLiteral.create());

    beanManager.addBean(factory.singleton(webApp));

    Config.setProperty("webApp", getVar());
View Full Code Here

      if (_auth != null) {
        _auth.init();

        InjectManager webBeans = InjectManager.create();
        BeanFactory factory = webBeans.createBeanFactory(Authenticator.class);
        factory.type(Authenticator.class);
        factory.type(AdminAuthenticator.class);

        webBeans.addBean(factory.singleton(_auth));
      }
View Full Code Here

        _auth.init();

        InjectManager webBeans = InjectManager.create();
        BeanFactory factory = webBeans.createBeanFactory(Authenticator.class);
        factory.type(Authenticator.class);
        factory.type(AdminAuthenticator.class);

        webBeans.addBean(factory.singleton(_auth));
      }

      if (_transactionManager != null)
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.