java.lang.Object
org.jvnet.hk2.internal.DefaultClassAnalyzer
- All Implemented Interfaces:
org.glassfish.hk2.api.ClassAnalyzer
@Singleton
@Named("default")
@Visibility(LOCAL)
public class DefaultClassAnalyzer
extends Object
implements org.glassfish.hk2.api.ClassAnalyzer
this is the default implementation of the ClassAnalyzer
- Author:
- jwells
-
Field Summary
Fields inherited from interface org.glassfish.hk2.api.ClassAnalyzer
DEFAULT_IMPLEMENTATION_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDefaultClassAnalyzer(ServiceLocatorImpl locator) The DefaultClassAnalyzer is per ServiceLocatorImpl -
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)
-
Constructor Details
-
DefaultClassAnalyzer
The DefaultClassAnalyzer is per ServiceLocatorImpl- Parameters:
locator- The non-null locator associated with this analyzer
-
-
Method Details
-
getConstructor
public <T> Constructor<T> getConstructor(Class<T> clazz) throws org.glassfish.hk2.api.MultiException, NoSuchMethodException - Specified by:
getConstructorin interfaceorg.glassfish.hk2.api.ClassAnalyzer- Throws:
org.glassfish.hk2.api.MultiExceptionNoSuchMethodException
-
getInitializerMethods
public <T> Set<Method> getInitializerMethods(Class<T> clazz) throws org.glassfish.hk2.api.MultiException - Specified by:
getInitializerMethodsin interfaceorg.glassfish.hk2.api.ClassAnalyzer- Throws:
org.glassfish.hk2.api.MultiException
-
getFields
- Specified by:
getFieldsin interfaceorg.glassfish.hk2.api.ClassAnalyzer- Throws:
org.glassfish.hk2.api.MultiException
-
getPostConstructMethod
public <T> Method getPostConstructMethod(Class<T> clazz) throws org.glassfish.hk2.api.MultiException - Specified by:
getPostConstructMethodin interfaceorg.glassfish.hk2.api.ClassAnalyzer- Throws:
org.glassfish.hk2.api.MultiException
-
getPreDestroyMethod
- Specified by:
getPreDestroyMethodin interfaceorg.glassfish.hk2.api.ClassAnalyzer- Throws:
org.glassfish.hk2.api.MultiException
-