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
Modifier and TypeClassDescriptionstatic final class
Binder for the JAX-RS compliant class analyzer implementation. -
Field Summary
Fields 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> Method
getPostConstructMethod
(Class<T> clazz) <T> Method
getPreDestroyMethod
(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:
getConstructor
in interfaceClassAnalyzer
- Throws:
MultiException
NoSuchMethodException
-
getInitializerMethods
- Specified by:
getInitializerMethods
in interfaceClassAnalyzer
- Throws:
MultiException
-
getFields
- Specified by:
getFields
in interfaceClassAnalyzer
- Throws:
MultiException
-
getPostConstructMethod
- Specified by:
getPostConstructMethod
in interfaceClassAnalyzer
- Throws:
MultiException
-
getPreDestroyMethod
- Specified by:
getPreDestroyMethod
in interfaceClassAnalyzer
- Throws:
MultiException
-