@Singleton @Named(value="JerseyClassAnalyzer") public final class JerseyClassAnalyzer extends Object implements ClassAnalyzer
ClassAnalyzer
that supports selection
of the constructor with largest number of parameters as defined in
and required by JAX-RS specification.Modifier and Type | Class and Description |
---|---|
static class |
JerseyClassAnalyzer.Binder
Binder for the JAX-RS compliant class analyzer implementation.
|
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of the analyzer service.
|
DEFAULT_IMPLEMENTATION_NAME
Modifier and Type | Method and Description |
---|---|
<T> Constructor<T> |
getConstructor(Class<T> clazz) |
<T> Set<Field> |
getFields(Class<T> clazz) |
<T> Set<Method> |
getInitializerMethods(Class<T> clazz) |
<T> Method |
getPostConstructMethod(Class<T> clazz) |
<T> Method |
getPreDestroyMethod(Class<T> clazz) |
public static final String NAME
public <T> Constructor<T> getConstructor(Class<T> clazz) throws MultiException, NoSuchMethodException
getConstructor
in interface ClassAnalyzer
MultiException
NoSuchMethodException
public <T> Set<Method> getInitializerMethods(Class<T> clazz) throws MultiException
getInitializerMethods
in interface ClassAnalyzer
MultiException
public <T> Set<Field> getFields(Class<T> clazz) throws MultiException
getFields
in interface ClassAnalyzer
MultiException
public <T> Method getPostConstructMethod(Class<T> clazz) throws MultiException
getPostConstructMethod
in interface ClassAnalyzer
MultiException
public <T> Method getPreDestroyMethod(Class<T> clazz) throws MultiException
getPreDestroyMethod
in interface ClassAnalyzer
MultiException
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.