Examples of AnnotationReader


Examples of org.hibernate.annotations.common.reflection.AnnotationReader

  private XMLContext xmlContext = new XMLContext();
  private Map<Object, Object> defaults;
  private Map<AnnotatedElement, AnnotationReader> cache = new HashMap<AnnotatedElement, AnnotationReader>(100);

  public AnnotationReader getAnnotationReader(AnnotatedElement annotatedElement) {
    AnnotationReader reader = cache.get( annotatedElement );
    if (reader == null) {
      if ( xmlContext.hasContext() ) {
        reader = new JPAOverridenAnnotationReader( annotatedElement, xmlContext );
      }
      else {
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.AnnotationReader

    delegate = new JavaMetadataProvider();
    cache = new HashMap<AnnotatedElement, AnnotationReader>(100);
  }

  public AnnotationReader getAnnotationReader(AnnotatedElement annotatedElement) {
    AnnotationReader reader = cache.get( annotatedElement );
    if (reader == null) {
      if ( xmlContext.hasContext() ) {
        reader = new JPAOverriddenAnnotationReader( annotatedElement, xmlContext );
      }
      else {
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.AnnotationReader

    return defaults;
  }

  @Override
  public AnnotationReader getAnnotationReader(AnnotatedElement annotatedElement) {
    AnnotationReader reader = cache.get( annotatedElement );
    if ( reader == null ) {
      reader = new MappingModelAnnotationReader( mapping, delegate, annotatedElement );
      cache.put( annotatedElement, reader );
    }
    return reader;
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.AnnotationReader

    delegate = new JavaMetadataProvider();
    cache = new HashMap<AnnotatedElement, AnnotationReader>(100);
  }
  @Override
  public AnnotationReader getAnnotationReader(AnnotatedElement annotatedElement) {
    AnnotationReader reader = cache.get( annotatedElement );
    if (reader == null) {
      if ( xmlContext.hasContext() ) {
        reader = new JPAOverriddenAnnotationReader( annotatedElement, xmlContext );
      }
      else {
View Full Code Here

Examples of org.teavm.model.AnnotationReader

    @Override
    public void begin(RenderingContext context, BuildTarget buildTarget) throws IOException {
        boolean hasOneResource = false;
        for (String className : context.getClassSource().getClassNames()) {
            ClassReader cls = context.getClassSource().get(className);
            AnnotationReader annot = cls.getAnnotations().get(JavaScriptResource.class.getName());
            if (annot == null) {
                continue;
            }
            String path = annot.getValue("value").getString();
            String packageName = className.substring(0, className.lastIndexOf('.'));
            String resourceName = packageName.replace('.', '/') + "/" + path;
            try (InputStream input = context.getClassLoader().getResourceAsStream(resourceName)) {
                if (input == null) {
                    throw new RenderingException("Error processing JavaScriptResource annotation on class " +
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.