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 ClassAnalyzerImplementation of theClassAnalyzerthat 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 Classes Modifier and Type Class Description static classJerseyClassAnalyzer.BinderBinder for the JAX-RS compliant class analyzer implementation.
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEName of the analyzer service.-
Fields inherited from interface org.glassfish.hk2.api.ClassAnalyzer
DEFAULT_IMPLEMENTATION_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Constructor<T>getConstructor(Class<T> clazz)<T> Set<Field>getFields(Class<T> clazz)<T> Set<Method>getInitializerMethods(Class<T> clazz)<T> MethodgetPostConstructMethod(Class<T> clazz)<T> MethodgetPreDestroyMethod(Class<T> clazz)
-
-
-
Field Detail
-
NAME
public static final String NAME
Name of the analyzer service.- See Also:
- Constant Field Values
-
-
Method Detail
-
getConstructor
public <T> Constructor<T> getConstructor(Class<T> clazz) throws MultiException, NoSuchMethodException
- Specified by:
getConstructorin interfaceClassAnalyzer- Throws:
MultiExceptionNoSuchMethodException
-
getInitializerMethods
public <T> Set<Method> getInitializerMethods(Class<T> clazz) throws MultiException
- Specified by:
getInitializerMethodsin interfaceClassAnalyzer- Throws:
MultiException
-
getFields
public <T> Set<Field> getFields(Class<T> clazz) throws MultiException
- Specified by:
getFieldsin interfaceClassAnalyzer- Throws:
MultiException
-
getPostConstructMethod
public <T> Method getPostConstructMethod(Class<T> clazz) throws MultiException
- Specified by:
getPostConstructMethodin interfaceClassAnalyzer- Throws:
MultiException
-
getPreDestroyMethod
public <T> Method getPreDestroyMethod(Class<T> clazz) throws MultiException
- Specified by:
getPreDestroyMethodin interfaceClassAnalyzer- Throws:
MultiException
-
-