|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.hk2.internal.JaxRsClassAnalyzer
@Singleton @Named(value="PreferLargestConstructor") public class JaxRsClassAnalyzer
Implementation of the ClassAnalyzer that prefers the largest number of parameters in the constructor over the smallest. Other than that it is exactly the same as the default analyzer
| Field Summary |
|---|
| Fields inherited from interface org.glassfish.hk2.api.ClassAnalyzer |
|---|
DEFAULT_IMPLEMENTATION_NAME |
| Constructor Summary | |
|---|---|
JaxRsClassAnalyzer()
|
|
| Method Summary | ||
|---|---|---|
|
getConstructor(java.lang.Class<T> clazz)
Will return the constructor that it to be used when constructing this service |
|
|
getFields(java.lang.Class<T> clazz)
Will return the set of initializer fields to be used when initializing this service |
|
|
getInitializerMethods(java.lang.Class<T> clazz)
Will return the set of initializer method to be used when initializing this service |
|
|
getPostConstructMethod(java.lang.Class<T> clazz)
Will return the postConstruct method of the class |
|
|
getPreDestroyMethod(java.lang.Class<T> clazz)
Will return the preDestroy method of the class |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxRsClassAnalyzer()
| Method Detail |
|---|
public <T> java.lang.reflect.Constructor<T> getConstructor(java.lang.Class<T> clazz)
throws MultiException,
java.lang.NoSuchMethodException
ClassAnalyzerThe default implementation will use the zero-arg constructor if no single constructor with Inject is found
getConstructor in interface ClassAnalyzerclazz - the non-null class to analyze
MultiException - on an error when analyzing the class
java.lang.NoSuchMethodException - if there was no available constructor
public <T> java.util.Set<java.lang.reflect.Method> getInitializerMethods(java.lang.Class<T> clazz)
throws MultiException
ClassAnalyzerThe default implementation will return all methods marked with Inject
getInitializerMethods in interface ClassAnalyzerclazz - the non-null class to analyze
MultiException - on an error when analyzing the class
public <T> java.util.Set<java.lang.reflect.Field> getFields(java.lang.Class<T> clazz)
throws MultiException
ClassAnalyzerThe default implementation will return all fields marked with Inject
getFields in interface ClassAnalyzerclazz - the non-null class to analyze
MultiException - on an error when analyzing the class
public <T> java.lang.reflect.Method getPostConstructMethod(java.lang.Class<T> clazz)
throws MultiException
ClassAnalyzer
The default implementation will return the PostConstruct.postConstruct()
method or the method annotated with PostConstruct
getPostConstructMethod in interface ClassAnalyzerclazz - the non-null class to analyze
MultiException - on an error when analyzing the class
public <T> java.lang.reflect.Method getPreDestroyMethod(java.lang.Class<T> clazz)
throws MultiException
ClassAnalyzer
The default implementation will return the PreDestroy.preDestroy()
method or the method annotated with PreDestroy
getPreDestroyMethod in interface ClassAnalyzerclazz - the non-null class to analyze
MultiException - on an error when analyzing the class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||