Examples of AnnoBean


Examples of org.codehaus.annogen.override.AnnoBean

      beanClass = mTypeMapping.getAnnoBeanClassForRequest(requestedClass);
    } catch(ClassNotFoundException cnfe) {
      mLogger.error(cnfe);
      return null;
    }
    AnnoBean ap = (AnnoBean)mBeanClass2AnnoClass.get(beanClass);
    if (ap != null) return ap;
    ap = mContext.createAnnoBeanFor(beanClass);
    if (ap != null) {
      mBeanClass2AnnoClass.put(beanClass,ap);
      return ap;
View Full Code Here

Examples of org.codehaus.annogen.override.AnnoBean

  private boolean doExtract(AnnoBeanSet out, Object[] raw) {
    if (raw == null || raw.length == 0) return false;
    for(int i=0; i<raw.length; i++) {
      Class declClass = getAnnotationClassFor(raw[i]);
      AnnoBean proxy = out.findOrCreateBeanFor(declClass);
      copyValues(raw[i],proxy,declClass);
    }
    return true;
  }
View Full Code Here

Examples of org.codehaus.annogen.override.AnnoBean

    AnnotationDesc[] anns = src.annotations();
    if (anns == null || anns.length == 0) return false;
    for(int i=0; i<anns.length; i++) {
      Class annType = getClassFor(anns[i]);
      if (annType == null) continue;
      AnnoBean proxy = out.findOrCreateBeanFor(annType);
      if (proxy == null) continue;
      copyValues(anns[i],proxy);
    }
    return true;
  }
View Full Code Here

Examples of org.codehaus.annogen.override.AnnoBean

      }
      if (value == null) continue; //REVIEW
      if (value instanceof AnnotationDesc) {
        Class nestedClass = getClassFor((AnnotationDesc)value);
        if (nestedClass == null) continue;
        AnnoBean nested = dest.createNestableBean(nestedClass);
        if (nested == null) continue;
        copyValues((AnnotationDesc)value,nested);
        dest.setValue(name,nested);
      } else if (value.getClass().isArray()) {
        throw new IllegalStateException("arrays NYI"); //FIXME
View Full Code Here

Examples of org.codehaus.annogen.override.AnnoBean

    JAnnotation[] anns = mElement.getAnnotations();
    if (anns == null || anns.length == 0) return false;
    for(int i=0; i<anns.length; i++) {
      Class annoClass = getAnnotationTypeClass(anns[i]);
      if (annoClass == null) continue;
      AnnoBean bean = out.findOrCreateBeanFor(annoClass);
      populate(anns[i],bean);
    }
    return true;
  }
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.