Package org.actioncontroller.meta
Interface AnnotationFactory
-
- All Known Subinterfaces:
ApiControllerActionFactory<ANNOTATION>,HttpParameterMapperFactory<ANNOTATION>,HttpReturnMapperFactory<ANNOTATION>
- All Known Implementing Classes:
ClientCertificate.MapperFactory,ContentBody.MapperFactory,ContentBody.ParameterMapperFactory,ContentLocationHeader.MappingFactory,ContextUrl.MapperFactory,DELETE.RouterMapperFactory,GET.ActionFactory,HttpHeader.Mapper,HttpResponseHeader.MappingFactory,IfModifiedSince.Mapper,Json.MapperFactory,JsonBody.MapperFactory,JsonBody.ReturnMapperFactory,LastModified.Mapper,PathParam.MapperFactory,POST.ActionFactory,PUT.ActionFactory,QueryString.ParameterMapperFactory,RequestParam.ClientIpParameterMapperFactory,RequestParam.MapperFactory,RequestParam.RemoteUserParameterMapperFactory,SendRedirect.MappingFactory,ServletUrl.MapperFactory,SessionParameter.MapperFactory,UnencryptedCookie.Factory,UnencryptedCookiePreview.Factory,UnencryptedJsonCookie.MapperFactory,UserPrincipal.MapperFactory
public interface AnnotationFactory
-
-
Method Summary
Static Methods Modifier and Type Method Description static <T extends Annotation>
Optional<Annotation>getAnnotatedAnnotation(AnnotatedElement element, Class<T> targetAnnotation)Returns any annotation instance on the annotated element which is itself annotated with the target annotation.static <T> TnewInstance(Class<? extends T> clazz)
-
-
-
Method Detail
-
newInstance
static <T> T newInstance(Class<? extends T> clazz)
-
getAnnotatedAnnotation
static <T extends Annotation> Optional<Annotation> getAnnotatedAnnotation(AnnotatedElement element, Class<T> targetAnnotation)
Returns any annotation instance on the annotated element which is itself annotated with the target annotation. For example, given the annotation and class:@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.ANNOTATION_TYPE) public @interface MyAnnotation { String value(); } @MyAnnotation("hello") public class MyClass { }ThengetAnnotatedAnnotation(MyClass.class, MyAnnotation.class).value()will return"hello".
-
-