1 22 package org.jboss.repository.spi; 23 24 import java.lang.annotation.Annotation ; 25 import java.util.List ; 26 import java.util.Set ; 27 28 import org.jboss.metadata.spi.repository.MetaDataRepository; 29 30 35 public interface MetaDataContext 36 { 37 38 public abstract <T extends Annotation > boolean hasAnnotation(Class <T> ann); 39 40 public abstract <T extends Annotation > Annotation getAnnotation(Class <T> ann); 41 42 public abstract <T extends Annotation > boolean hasAnnotationForMethod(long methodHash, Class <T> ann); 43 44 public abstract <T extends Annotation > Annotation getAnnotationForMethod(long methodHash, Class <T> ann); 45 46 public abstract List <Annotation > getAnnotations(); 47 48 public abstract List <Annotation > getAnnotationsForMethod(long methodHash); 49 50 public abstract List <Annotation > getAnnotationsForMethods(long[] methodHashes); 51 52 public abstract MetaDataRepository getRepository(); 53 54 } | Popular Tags |