Package com.caucho.config.reflect

Examples of com.caucho.config.reflect.BaseType


      return;
   
    InjectManager cdiManager = InjectManager.getCurrent();

    for (Type localApi : ejbClass.getGenericInterfaces()) {
      BaseType type = cdiManager.createTargetBaseType(localApi);
     
      Class<?> rawClass = type.getRawClass();
     
      Local local = rawClass.getAnnotation(Local.class);

      if (local != null) {
        addLocalType(type);
View Full Code Here


 
  private void addInterface(ArrayList<BaseType> interfaceList,
                            BaseType cl)
  {
    for (int i = interfaceList.size() - 1; i >= 0; i--) {
      BaseType oldClass = interfaceList.get(i);
     
      if (oldClass.isAssignableFrom(cl)) {
        interfaceList.set(i, cl);
        return;
      }
      else if (cl.isAssignableFrom(oldClass)) {
        return;
View Full Code Here

  }
 
  public <T> void addRemote(Class<T> remote)
    throws ConfigException
  {
    BaseType type = getCdiManager().createTargetBaseType(remote);
   
    addRemoteType(type);
  }
View Full Code Here

   * Sets the ejb local interface
   */
  public void addLocal(Class<?> local)
    throws ConfigException
    {
      BaseType type = getCdiManager().createTargetBaseType(local);
     
      addLocalType(type);
    }
View Full Code Here

    Set<Type> apiList = new LinkedHashSet<Type>();

    AnnotatedType<X> baseType = getLocalBean();
   
    if (baseType != null) {
      BaseType sourceApi = moduleBeanManager.createSourceBaseType(baseType.getBaseType());
       
      apiList.addAll(sourceApi.getTypeClosure(moduleBeanManager));
    }
     
    if (localApiList != null) {
      for (AnnotatedType<? super X> api : localApiList) {
        baseApi = api.getJavaClass();
       
        BaseType sourceApi = moduleBeanManager.createSourceBaseType(api.getJavaClass());
         
        apiList.addAll(sourceApi.getTypeClosure(moduleBeanManager));
      }
    }
     
    apiList.add(Object.class);
   
View Full Code Here

    */
  }

  public Set<Bean<?>> resolve(Type type, Annotation []bindings)
  {
    BaseType baseType = _beanManager.createTargetBaseType(type);

    return resolve(baseType, bindings);
  }
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

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.