Package org.glassfish.jersey.inject.hk2
Class JerseyClassAnalyzer
java.lang.Object
org.glassfish.jersey.inject.hk2.JerseyClassAnalyzer
- All Implemented Interfaces:
ClassAnalyzer
@Singleton
@Named("JerseyClassAnalyzer")
public final class JerseyClassAnalyzer
extends Object
implements ClassAnalyzer
Implementation of the
ClassAnalyzer that supports selection
of the constructor with largest number of parameters as defined in
and required by JAX-RS specification.- Author:
- John Wells (john.wells at oracle.com), Marek Potociar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBinder for the JAX-RS compliant class analyzer implementation. -
Field Summary
FieldsFields inherited from interface org.glassfish.hk2.api.ClassAnalyzer
DEFAULT_IMPLEMENTATION_NAME -
Method Summary
Modifier and TypeMethodDescription<T> Constructor<T>getConstructor(Class<T> clazz) getInitializerMethods(Class<T> clazz) <T> MethodgetPostConstructMethod(Class<T> clazz) <T> MethodgetPreDestroyMethod(Class<T> clazz)
-
Field Details
-
NAME
Name of the analyzer service.- See Also:
-
-
Method Details
-
getConstructor
public <T> Constructor<T> getConstructor(Class<T> clazz) throws MultiException, NoSuchMethodException - Specified by:
getConstructorin interfaceClassAnalyzer- Throws:
MultiExceptionNoSuchMethodException
-
getInitializerMethods
- Specified by:
getInitializerMethodsin interfaceClassAnalyzer- Throws:
MultiException
-
getFields
- Specified by:
getFieldsin interfaceClassAnalyzer- Throws:
MultiException
-
getPostConstructMethod
- Specified by:
getPostConstructMethodin interfaceClassAnalyzer- Throws:
MultiException
-
getPreDestroyMethod
- Specified by:
getPreDestroyMethodin interfaceClassAnalyzer- Throws:
MultiException
-