Package org.eclipse.jetty.annotations
Class AnnotationIntrospector
java.lang.Object
org.eclipse.jetty.annotations.AnnotationIntrospector
AnnotationIntrospector
 Introspects a class to find various types of
 annotations as defined by the servlet specification.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAbstractIntrospectableAnnotationHandler Base class for handlers that introspect a class to find a particular annotation.static interfaceIntrospectableAnnotationHandler Interface for all handlers that wish to introspect a class to find a particular annotation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidintrospect(Object o, Object metaInfo) booleanisIntrospectable(Object o, Object metaInfo) Test if an object should be introspected for some specific types of annotations like PostConstruct/PreDestroy/MultiPart etc etc.void
- 
Constructor Details- 
AnnotationIntrospector
 
- 
- 
Method Details- 
registerHandler
- 
isIntrospectableTest if an object should be introspected for some specific types of annotations like PostConstruct/PreDestroy/MultiPart etc etc. According to servlet 4.0, these types of annotations should only be evaluated iff any of the following are true:- the object was created by the jakarta.servlet.ServletContext.createServlet/Filter/Listener method
- the object comes either from a discovered annotation (WebServlet/Filter/Listener) or a declaration in a descriptor AND web.xml is NOT metadata-complete AND any web-fragment.xml associated with the location of the class is NOT metadata-complete
 - Parameters:
- o- the object to check for its ability to be introspected for annotations
- metaInfo- meta information about the object to be introspected
- Returns:
- true if it can be introspected according to servlet 4.0 rules
 
- 
introspect
 
-