Examples of bean()


Examples of com.caucho.config.inject.BeanBuilder.bean()

    factory.scope(Singleton.class);

    if (_object != null)
      beanManager.addBean(factory.singleton(_object));
    else
      beanManager.addBean(factory.bean());

    if (log.isLoggable(Level.CONFIG))
      logConfig();
  }
View Full Code Here

Examples of com.caucho.config.inject.BeanBuilder.bean()

    builder.annotation(_cdiManager.generateXmlCookie());

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

    _bean = builder.bean();
    _extAnnotated = builder.getExtendedAnnotated();
   
    introspectPostInit();

    deploy();
View Full Code Here

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

    factory.scope(ApplicationScoped.class);

    if (_object != null)
      beanManager.addBean(factory.singleton(_object));
    else
      beanManager.addBean(factory.bean());

    if (log.isLoggable(Level.CONFIG))
      logConfig();
  }
View Full Code Here

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

    factory.name(_name);

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

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

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

    if (value != null) {
      bean = factory.singleton(value);
      beanManager.addBean(bean);
    }
    else {
      bean = factory.bean();
      beanManager.addBean(bean);
    }


    // XXXX: JNDI isn't right
View Full Code Here

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

    */

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

    _bean = factory.bean();

    introspectPostInit();

    deploy();

View Full Code Here

Examples of com.sun.xml.ws.api.FeatureListValidatorAnnotation.bean()

   
    private void validate(WebServiceFeature feature) {
        // run validation
        FeatureListValidatorAnnotation fva = feature.getClass().getAnnotation(FeatureListValidatorAnnotation.class);
        if (fva != null) {
            Class<? extends FeatureListValidator> beanClass = fva.bean();
            try {
                FeatureListValidator validator = beanClass.newInstance();
                validator.validate(this);
            } catch (InstantiationException e) {
                throw new WebServiceException(e);
View Full Code Here

Examples of com.sun.xml.ws.api.FeatureListValidatorAnnotation.bean()

   
    private void validate(WebServiceFeature feature) {
        // run validation
        FeatureListValidatorAnnotation fva = feature.getClass().getAnnotation(FeatureListValidatorAnnotation.class);
        if (fva != null) {
            Class<? extends FeatureListValidator> beanClass = fva.bean();
            try {
                FeatureListValidator validator = beanClass.newInstance();
                validator.validate(this);
            } catch (InstantiationException e) {
                throw new WebServiceException(e);
View Full Code Here

Examples of com.tobedevoured.modelcitizen.spring.annotation.SpringBlueprint.bean()

     * @throws BlueprintTemplateException
     */
    @Override
    protected Object createNewInstance(Erector erector) throws BlueprintTemplateException {
        SpringBlueprint springBlueprint = erector.getBlueprint().getClass().getAnnotation(SpringBlueprint.class);
        if ( springBlueprint != null && springBlueprint.bean() ) {
            Class beanClass = springBlueprint.beanClass();

            if ( beanClass.equals( NotSet.class) ) {
                beanClass = erector.getTarget();
            }
View Full Code Here

Examples of javax.xml.ws.spi.WebServiceFeatureAnnotation.bean()

    }

    private  WebServiceFeature getWebServiceFeatureBean(Annotation a) {
        WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class);

        Class<? extends WebServiceFeature> beanClass = wsfa.bean();
        WebServiceFeature bean;

        Constructor ftrCtr = null;
        String[] paramNames = null;
        for (Constructor con : beanClass.getConstructors()) {
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.