1 22 package org.jboss.metadata.spi; 23 24 import java.lang.annotation.Annotation ; 25 26 32 public interface MetaData 33 { 34 35 Annotation [] NO_ANNOTATIONS = new Annotation [0]; 36 37 38 Object [] NO_METADATA = new Object [0]; 39 40 45 long getValidTime(); 46 47 54 <T extends Annotation > T getAnnotation(Class <T> annotationType); 55 56 61 Annotation [] getAnnotations(); 62 63 68 Annotation [] getLocalAnnotations(); 69 70 76 boolean isAnnotationPresent(Class <? extends Annotation > annotationType); 77 78 85 <T> T getMetaData(Class <T> type); 86 87 92 Object [] getMetaData(); 93 94 99 Object [] getLocalMetaData(); 100 101 107 boolean isMetaDataPresent(Class <?> type); 108 109 115 Object getMetaData(String name); 116 117 125 <T> T getMetaData(String name, Class <T> type); 126 127 133 boolean isMetaDataPresent(String name); 134 135 142 boolean isMetaDataPresent(String name, Class <?> type); 143 } 144 | Popular Tags |