Package com.caucho.config.reflect

Examples of com.caucho.config.reflect.BaseType


          bindings = new Annotation[] { CurrentLiteral.CURRENT };

        args[i] = new BeanArg(param[i], bindings);
      }

      BaseType baseType = inject.createBaseType(param[0]);

      return new ExtensionMethod(method, baseType,
                                 inject.getQualifiers(paramAnn[0]),
                                 args);
    }
View Full Code Here


                             Bean<?> bean)
  {
    if (type == null)
      return;
   
    BaseType baseType = createSourceBaseType(type);
   
    addBeanByType(baseType, annotated, bean);
  }
View Full Code Here

        return resolveAllBeans();

      bindings = DEFAULT_ANN;
    }

    BaseType baseType = createTargetBaseType(type);
   
    // ioc/024n
    /*
    if (baseType.isGeneric())
      throw new IllegalArgumentException(L.l("'{0}' is an invalid getBeans type because it's generic.",
                                    baseType));
                                    */
   
    // ioc/02b1
    if (baseType.isVariable())
      throw new IllegalArgumentException(L.l("'{0}' is an invalid getBeans type because it's a type variable.",
                                             baseType));

    return resolveRec(baseType, bindings, ip);
  }
View Full Code Here

    }
  }
 
  private void validate(Type type)
  {
    BaseType baseType = createTargetBaseType(type);
   
    WebComponent comp = getWebComponent(baseType);
  }
View Full Code Here

  private Class<?> getRawClass(Type type)
  {
    if (type instanceof Class<?>)
      return (Class<?>) type;
   
    BaseType baseType = createSourceBaseType(type);
   
    return baseType.getRawClass();
  }
View Full Code Here

      }
    }
    else
      qualifiers = new Annotation[] { DefaultLiteral.DEFAULT };
   
    BaseType baseType = createTargetBaseType(type);
   
    /*
    if (baseType.isGeneric())
      throw new InjectionException(L.l("'{0}' is an invalid type for injection because it's generic. {1}",
                                       baseType, ij));
                                       */
    if (baseType.isGenericVariable())
      throw new InjectionException(L.l("'{0}' is an invalid type for injection because it's a variable generic type.\n  {1}",
                                       baseType, ij));

    Set<Bean<?>> set = resolveRec(baseType, qualifiers, ij);
   
View Full Code Here

    Class<?> newClass = newQualifier.value();
   
    if (newClass == null
        || void.class.equals(newClass)
        || New.class.equals(newClass)) {
      BaseType baseType = createTargetBaseType(type);
      newClass = (Class<T>) baseType.getRawClass();
    }
     
    Bean<?> bean = _newBeanMap.get(newClass);

    if (bean == null) {
      AnnotatedType<T> annType = (AnnotatedType<T>) ReflectionAnnotatedFactory.introspectType(newClass);
     
      BaseType newType = createSourceBaseType(type);

      NewBean<T> newBean = new NewBean<T>(this, newType.getRawClass(), annType);
      newBean.introspect();

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

  /**
   * Adds a new decorator
   */
  private <X> DecoratorEntry<X> addDecorator(Decorator<X> decorator)
  {
    BaseType baseType = createTargetBaseType(decorator.getDelegateType());

    DecoratorEntry<X> entry = new DecoratorEntry<X>(this, decorator, baseType);
   
    _decoratorList.add(entry);
   
View Full Code Here

    for (Type type : closure) {
      if (type.equals(cl)) {
        types.add(type);
      }
      else if (type instanceof BaseType) {
        BaseType baseType = (BaseType) type;
       
        if (baseType.getRawClass().equals(cl))
          types.add(type);
      }
    }
  }
View Full Code Here

    _bean = bean;
   
    Type type = _annotatedType.getBaseType();
   
    // ioc/2601
    BaseType baseType = getBeanManager().createSourceBaseType(type);
   
    _rawClass= (Class<X>) baseType.getRawClass();
   
    introspectInjectClass(_annotatedType);
  }
View Full Code Here

TOP

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

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.