org.kohsuke.stapler.lang.AnnotatedRef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stapler Show documentation
Show all versions of stapler Show documentation
Stapler HTTP request handling engine
package org.kohsuke.stapler.lang;
import java.lang.annotation.Annotation;
/**
* @author Kohsuke Kawaguchi
*/
public abstract class AnnotatedRef {
// no subtyping outside the package
/*package*/ AnnotatedRef() {}
public abstract T getAnnotation(Class type);
public boolean hasAnnotation(Class extends Annotation> type) {
return getAnnotation(type)!=null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy