Package com.caucho.config.reflect

Examples of com.caucho.config.reflect.AnnotatedTypeImpl


  {
    AnnotatedTypeImpl<X> annType;
   
    AnnotatedType<?> refType = ReflectionAnnotatedFactory.introspectType(remote);
   
    annType = new AnnotatedTypeImpl(refType);
   
    addRemoteWrapper(annType);
  }
View Full Code Here


  {
    AnnotatedTypeImpl<X> annType;
   
    AnnotatedType<?> refType = ReflectionAnnotatedFactory.introspectType(local);
   
    annType = new AnnotatedTypeImpl(refType);
   
    addLocalWrapper(annType);
  }
View Full Code Here

          proxyFactory.setAnnotated(annotated);

          Object proxy = proxyFactory.createProxy((Class<?>) annotated.getBaseType());

          AnnotatedTypeImpl<?> annotatedType
          = new AnnotatedTypeImpl((AnnotatedType) annotated);

          annotatedType.addAnnotation(EnhancedLiteral.ANNOTATION);

          BeanBuilder<?> builder
          = _beanManager.createBeanFactory(annotatedType);

          /*
 
View Full Code Here

    proxyFactory.setProxyType(ann);
    proxyFactory.setAnnotated(annotated);

    Object proxy = proxyFactory.createProxy((Class) annotated.getBaseType());

    AnnotatedTypeImpl annotatedType
      = new AnnotatedTypeImpl((Class) annotated.getBaseType());

    annotatedType.addAnnotation(EnhancedLiteral.ANNOTATION);

    BeanFactory factory
      = _beanManager.createBeanFactory(annotatedType);

    /*
 
View Full Code Here

      }
    }
    else if (New.class.equals(bindings[0].annotationType())) {
      // ioc/0721
      HashSet<Bean<?>> set = new HashSet<Bean<?>>();
      AbstractBean<?> newBean = new NewBean(this, new AnnotatedTypeImpl(baseType.getRawClass(), baseType.getRawClass()));
      newBean.introspect();

      set.add(newBean);

      return set;
View Full Code Here

    Bean<?> bean = _newBeanMap.get(type);

    if (bean == null) {
      BaseType baseType = createBaseType(type);

      AbstractBean<?> newBean = new NewBean(this, new AnnotatedTypeImpl(baseType.getRawClass(), baseType.getRawClass()));
      newBean.introspect();

      _newBeanMap.put(type, bean);
      bean = newBean;
    }
View Full Code Here

      if (_beanCtor == null) {
        // XXX:
        AnnotatedType beanType = _beanType;
        if (beanType != null)
          beanType = new AnnotatedTypeImpl(cl, cl);

        introspectConstructor(beanType);
      }

      // introspectObservers(getTargetClass());
View Full Code Here

                                    getClass().getSimpleName()));
    }

    InjectManager beanManager = InjectManager.create();

    AnnotatedTypeImpl beanType = new AnnotatedTypeImpl(_cl, _cl);

    if (_name != null) {
      beanType.addAnnotation(Names.create(_name));
    }

    for (Annotation binding : _bindings) {
      beanType.addAnnotation(binding);
    }

    for (Annotation stereotype : _stereotypes) {
      beanType.addAnnotation(stereotype);
    }

    for (Annotation ann : _annotations) {
      beanType.addAnnotation(ann);
    }

    BeanFactory factory = beanManager.createBeanFactory(beanType);

    if (_scope != null)
View Full Code Here

   
    if (annotatedType == null) {
      if (isReadOnly)
  annotatedType = ReflectionAnnotatedFactory.introspectSimpleType(apiClass);
      else
  annotatedType = new AnnotatedTypeImpl(apiClass, apiClass);
    }
    else if (! isReadOnly && ! (annotatedType instanceof AnnotatedTypeImpl)) {
      // XXX:
      annotatedType = new AnnotatedTypeImpl(apiClass, apiClass);
    }

    _apiClass = apiClass;
    _annotatedType = annotatedType;
    _isReadOnly = isReadOnly;
View Full Code Here

TOP

Related Classes of com.caucho.config.reflect.AnnotatedTypeImpl

Copyright © 2018 www.massapicom. 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.