Examples of BaseType


Examples of com.caucho.config.reflect.BaseType

      }
    }
    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

Examples of com.caucho.config.reflect.BaseType

    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

Examples of com.caucho.config.reflect.BaseType

  /**
   * 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

Examples of com.caucho.config.reflect.BaseType

  private void introspectTypes(Type type, HashMap<String,BaseType> paramMap)
  {
    if (type == null || _reservedTypes.contains(type))
      return;
   
    BaseType baseType = addType(type, paramMap);

    if (baseType == null)
      return;

    HashMap<String,BaseType> newParamMap = baseType.getParamMap();
    Class<?> cl = baseType.getRawClass();

    introspectTypes(cl.getGenericSuperclass(), newParamMap);

    for (Type iface : cl.getGenericInterfaces()) {
      introspectTypes(iface, newParamMap);
View Full Code Here

Examples of com.caucho.config.reflect.BaseType

    }
  }

  protected BaseType addType(Type type, HashMap<String,BaseType> paramMap)
  {
    BaseType baseType = BaseType.create(type, paramMap);

    if (baseType == null)
      return null;

    if (_types.contains(baseType))
      return null;

    _types.add(baseType);

    /*
    if (! _typeClasses.contains(baseType.getRawClass()))
      _typeClasses.add(baseType.getRawClass());
    */
    if (! _typeClasses.contains(baseType.toType()))
      _typeClasses.add(baseType.toType());

    return baseType;
  }
View Full Code Here

Examples of com.caucho.config.reflect.BaseType

      annotatedType = ((InjectionTargetImpl<T>) target).getAnnotatedType();
   
    ProcessInjectionTargetImpl<T> processTarget
      = new ProcessInjectionTargetImpl<T>(target, annotatedType);
   
    BaseType eventType = createBaseType(ProcessInjectionTargetImpl.class);
    eventType = eventType.fill(createBaseType(annotatedType.getBaseType()));

    fireExtensionEvent(processTarget, eventType);

    return (InjectionTarget<T>) processTarget.getInjectionTarget();
  }
View Full Code Here

Examples of com.caucho.config.reflect.BaseType

        return resolveAllBeans();

      bindings = CURRENT_ANN;
    }

    BaseType baseType = createBaseType(type);

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

Examples of com.caucho.config.reflect.BaseType

  private Bean<?> createNewBean(Type type)
  {
    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

Examples of com.caucho.config.reflect.BaseType

   * @param observer the observer object
   * @param bindings the binding set for the event
   */
  public void addObserver(ObserverMethod<?> observer)
  {
    BaseType observedType = createBaseType(observer.getObservedType());
    Set<Annotation> qualifierSet = observer.getObservedQualifiers();

    Annotation[] qualifiers = new Annotation[qualifierSet.size()];
    int i = 0;
    for (Annotation qualifier : qualifierSet) {
View Full Code Here

Examples of com.caucho.config.reflect.BaseType

   */
  public void addObserver(ObserverMethod<?> observer,
                          Type type,
                          Annotation... bindings)
  {
    BaseType eventType = createBaseType(type);

    addObserver(observer, eventType, bindings);
  }
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.