Examples of addBean()


Examples of com.avaje.ebean.bean.BeanCollectionAdd.addBean()

      EntityBean detailBean = (EntityBean) many.targetDescriptor.jsonRead(parser, many.name);
      if (detailBean == null) {
        // read the entire array
        break;
      }
      add.addBean(detailBean);

      if (parentBean != null && many.childMasterProperty != null) {
        // bind detail bean back to master via mappedBy property
        many.childMasterProperty.setValue(detailBean, parentBean);
      }
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

        factory.type(Authenticator.class);
        factory.type(AdminAuthenticator.class);
        factory.qualifier(DefaultLiteral.DEFAULT);

        cdiManager.addBean(factory.singleton(auth));
      }

      DependencyCheckInterval depend = new DependencyCheckInterval();
      depend.setValue(new Period(-1));
      depend.init();
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

        InjectManager manager = InjectManager.create();
        BeanBuilder<?> factory = manager.createBeanFactory(Authenticator.class);
        factory.type(Authenticator.class);
        factory.type(AdminAuthenticator.class);

        manager.addBean(factory.singleton(_auth));
      }
    } catch (Exception e) {
      e.printStackTrace();
      throw ConfigException.create(e);
    }
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

        BeanBuilder<?> factory = cdiManager.createBeanFactory(_value.getClass());

        if (_name != null)
          factory.name(_name);

        cdiManager.addBean(factory.singleton(_value));
      }
      else if (_className == null)
        throw new ConfigException(L.l("BeanEmbed must either have a value or a class"));
      else {
        ClassLoader loader = Thread.currentThread().getContextClassLoader();
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

          factory.name(_name);

        if (_init != null)
          factory.init(_init);

        cdiManager.addBean(factory.bean());
      }
    } catch (Exception e) {
      throw ConfigException.create(e);
    }
  }
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

    super.bindContext();
   
    InjectManager manager = InjectManager.create();
    BeanBuilder<?> factory = manager.createBeanFactory(_context.getClass());

    manager.addBean(factory.singleton(_context));
  }

  /**
   * Starts the server.
   */
 
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

      // _resourceProgram = _manager.getResourceProgram(_ejbClass);

      if (_timerService != null) {
        BeanBuilder<TimerService> factory = cdiManager.createBeanFactory(TimerService.class);
        cdiManager.addBean(factory.singleton(_timerService));
      }
    } finally {
      thread.setContextClassLoader(loader);
    }
  }
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

    context.setDeclaredRoles(_declaredRoles);

    // XXX: separate additions?
    if (injectManager.getBeans(SessionContext.class).size() == 0)
      injectManager.addBean(factory.singleton(context));
  
    _contextMap.put(context.getApi(), context);
   
    try {
      String beanName = getAnnotatedType().getJavaClass().getName();
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

     
      BeanBuilder<TimerService> timerBuilder
        = injectManager.createBeanFactory(TimerService.class);
     
      if (injectManager.getBeans(TimerService.class).size() == 0)
        injectManager.addBean(timerBuilder.singleton(timer));
    } catch (Exception e) {
      log.log(Level.ALL, e.toString(), e);
    }
   
    /*
 
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.addBean()

                                   _bean,
                                   rawAnnType,
                                   getEJBName(),
                                   getSessionBeanType());

    moduleBeanManager.addBean(_bean, process);
   
    if (! moduleBeanManager.isSpecialized(annType.getJavaClass())) {
      moduleBeanManager.addProduces(_bean, extAnnType);
    }
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.