| Package | Description |
|---|---|
| org.jvnet.hk2.internal |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utilities.checkFactoryType(java.lang.Class<?> factoryClass,
Collector collector)
Checks to be sure the Factory class is ok
|
static java.util.Set<java.lang.reflect.Field> |
Utilities.findInitializerFields(java.lang.Class<?> annotatedType,
ServiceLocatorImpl locator,
Collector errorCollector)
Will find all the initialize fields in the class
|
static java.util.Set<java.lang.reflect.Method> |
Utilities.findInitializerMethods(java.lang.Class<?> annotatedType,
ServiceLocatorImpl locator,
Collector errorCollector)
Get all the initializer methods of the annotatedType.
|
static java.lang.reflect.Method |
Utilities.findPostConstruct(java.lang.Class<?> clazz,
Collector collector)
Finds the post construct method on this class
|
static java.lang.reflect.Method |
Utilities.findPreDestroy(java.lang.Class<?> clazz,
Collector collector)
Finds the pre destroy method on this class
|
static java.lang.reflect.Constructor<?> |
Utilities.findProducerConstructor(java.lang.Class<?> annotatedType,
ServiceLocatorImpl locator,
Collector collector)
Validates the constructors of the annotated type and returns the
producer for the annotatedType (if there is no valid producer
constructor then this method returns null)
|
static java.util.Set<java.lang.annotation.Annotation> |
Utilities.getAllQualifiers(java.lang.reflect.AnnotatedElement annotatedGuy,
java.lang.String name,
Collector collector)
Returns the full set of qualifier annotations on this class
|
static ClassAnalyzer |
Utilities.getClassAnalyzer(ServiceLocatorImpl sli,
java.lang.String analyzerName,
Collector errorCollector)
Returns the class analyzer with the given name
|
static <T> java.lang.reflect.Constructor<T> |
Utilities.getConstructor(java.lang.Class<T> implClass,
ClassAnalyzer analyzer,
Collector collector)
Gets the constructor given the implClass and analyzer.
|
static java.lang.String |
Utilities.getDefaultNameFromMethod(java.lang.reflect.Method parent,
Collector collector)
Returns the default name if one can be found.
|
static java.util.Set<java.lang.reflect.Field> |
Utilities.getInitFields(java.lang.Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector)
Gets the initializer fields from the given class and analyzer.
|
static java.util.Set<java.lang.reflect.Method> |
Utilities.getInitMethods(java.lang.Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector)
Gets the initializer methods from the given class and analyzer.
|
static java.lang.reflect.Method |
Utilities.getPostConstruct(java.lang.Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector)
Gets the post construct from the analyzer, checking output
|
static java.lang.reflect.Method |
Utilities.getPreDestroy(java.lang.Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector)
Gets the preDestroy from the analyzer, checking output
|
static java.lang.Class<? extends java.lang.annotation.Annotation> |
Utilities.getScopeAnnotationType(java.lang.reflect.AnnotatedElement annotatedGuy,
Descriptor defaultScope,
Collector collector)
Returns the scope of this thing
|
static java.lang.Class<?> |
Utilities.loadClass(java.lang.String loadMe,
Descriptor fromMe,
Collector collector)
Loads the class using the loader from the given descriptor or the
classloader of the utilities class otherwise
|
static void |
Utilities.validateSelfInjectees(ActiveDescriptor<?> givenDescriptor,
java.util.List<Injectee> injectees,
Collector collector)
This method validates a list of injectees to ensure that any self injectees have
the proper set of requirements.
|
Copyright © 2013 Oracle Corporation. All Rights Reserved.