Examples of AnnotationProxy


Examples of com.inspiresoftware.lib.dto.geda.assembler.annotations.AnnotationProxy

        }
        return new DTOtoEntitiesAssemblerDecoratorImpl(dto, entities, classLoader, new MethodSynthesizerProxy(classLoader, synthesizer), registry);
  }

    private static AnnotationProxy getDtoAnnotation(final Class<?> dto) {
        final AnnotationProxy ann = AnnotationProxies.getClassAnnotationProxy(dto);
        if (ann.annotationExists()) {
            return ann;
        }
        throw new AnnotationMissingException(dto.getCanonicalName());
    }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.annotations.AnnotationProxy

    }


    private static AnnotationProxy getDtoAnnotationAuto(final Class<?> dto)
      throws AnnotationMissingException, AnnotationMissingAutobindingException {
    final AnnotationProxy ann = AnnotationProxies.getClassAnnotationProxy(dto);
        if (!ann.annotationExists()) {
            throw new AnnotationMissingException(dto.getCanonicalName());
        }
        final String[] auto = ann.getValue("value");
    if (auto == null || auto.length == 0) {
      throw new AnnotationMissingAutobindingException(dto.getCanonicalName());
    }
    return ann;
  }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.annotations.AnnotationProxy

      throws AutobindingClassNotFoundException {
        final int cacheKey = dto.hashCode();
        if (AUTOBINDING.containsKey(cacheKey)) {
            return AUTOBINDING.get(cacheKey);
        }
        final AnnotationProxy ann = getDtoAnnotationAuto(dto);
        final String[] auto = ann.getValue("value");
        final Class[] classes = new Class[auto.length];
        for (int i = 0; i < auto.length; i++) {
            final String clazz = auto[i];
            try {
                if (clazz == null || clazz.length() == 0) {
View Full Code Here

Examples of org.codehaus.jam.annotation.AnnotationProxy

  // ElementContext implementation

  public JamClassLoader getClassLoader() { return mLoader; }

  public AnnotationProxy createAnnotationProxy(String jsr175typename) {
    AnnotationProxy out = new DefaultAnnotationProxy();
    out.init(this);
    return out;
  }
View Full Code Here

Examples of org.codehaus.jam.annotation.AnnotationProxy

  public MAnnotation findOrCreateAnnotation(String annotationName) {
    //ClassImpl.validateClassName(annotationName);
    MAnnotation ann = getMutableAnnotation(annotationName);
    if (ann != null) return ann;
    AnnotationProxy proxy = getContext().
      createAnnotationProxy(annotationName);
    ann = new AnnotationImpl(getContext(),proxy,annotationName);
    if (mName2Annotation == null) {
      mName2Annotation = new HashMap();
    }
View Full Code Here

Examples of org.codehaus.jam.annotation.AnnotationProxy

    if (annName == null) throw new IllegalArgumentException("null tagname");
    annName = annName.trim();
    // otherwise, we have to create an 'extra' one.  note this will only
    // happen when processing javadoc tags where more than one tag of a given
    // name appears in a given scope
    AnnotationProxy proxy = getContext().createAnnotationProxy(annName);
    MAnnotation ann = new AnnotationImpl(getContext(),proxy,annName);
    if (mAllAnnotations == null) mAllAnnotations = new ArrayList();
    mAllAnnotations.add(ann);

    // if one doesn't exist yet, then create the first one
View Full Code Here

Examples of org.codehaus.jam.annotation.AnnotationProxy

  }

  public MAnnotation createNestedValue(String name, String annTypeName) {
    if (name == null) throw new IllegalArgumentException("null name");
    if (annTypeName == null) throw new IllegalArgumentException("null typename");
    AnnotationProxy p = getContext().createAnnotationProxy(annTypeName);
    AnnotationImpl out = new AnnotationImpl(getContext(),p,annTypeName);
    JClass type  = getContext().getClassLoader().loadClass(annTypeName);
    mProxy.setValue(name,out,type);
    return out;
  }
View Full Code Here

Examples of org.codehaus.jam.annotation.AnnotationProxy

    if (name == null) throw new IllegalArgumentException("null name");
    if (annComponentTypeName == null) throw new IllegalArgumentException("null typename");
    if (dimensions < 0) throw new IllegalArgumentException("dimensions = "+dimensions);
    MAnnotation[] out = new MAnnotation[dimensions];
    for(int i=0; i<out.length; i++) {
      AnnotationProxy p = getContext().createAnnotationProxy(annComponentTypeName);
      out[i] = new AnnotationImpl(getContext(),p,annComponentTypeName);
    }
    JClass type  = getContext().getClassLoader().loadClass("[L"+annComponentTypeName+";");
    mProxy.setValue(name,out,type);
    return out;
View Full Code Here

Examples of org.codehaus.jam.annotation.AnnotationProxy

  // ElementContext implementation

  public JamClassLoader getClassLoader() { return mLoader; }

  public AnnotationProxy createAnnotationProxy(String jsr175typename) {
    AnnotationProxy out = new DefaultAnnotationProxy();
    out.init(this);
    return out;
  }
View Full Code Here

Examples of org.codehaus.jam.annotation.AnnotationProxy

  }

  public MAnnotation createNestedValue(String name, String annTypeName) {
    if (name == null) throw new IllegalArgumentException("null name");
    if (annTypeName == null) throw new IllegalArgumentException("null typename");
    AnnotationProxy p = getContext().createAnnotationProxy(annTypeName);
    AnnotationImpl out = new AnnotationImpl(getContext(),p,annTypeName);
    JClass type  = getContext().getClassLoader().loadClass(annTypeName);
    mProxy.setValue(name,out,type);
    return out;
  }
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.