| Package | Description |
|---|---|
| org.jvnet.hk2.internal |
| Modifier and Type | Method and Description |
|---|---|
static <T> ActiveDescriptor<T> |
Utilities.createAutoDescriptor(java.lang.Class<T> clazz,
ServiceLocatorImpl locator)
Creates a reified automatically generated descriptor
|
static <T> T |
Utilities.createService(ActiveDescriptor<T> root,
Injectee injectee,
ServiceLocatorImpl locator,
ServiceHandle<T> handle,
java.lang.Class<?> requestedClass) |
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.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 ClassAnalyzer |
Utilities.getClassAnalyzer(ServiceLocatorImpl sli,
java.lang.String analyzerName,
Collector errorCollector)
Returns the class analyzer with the given name
|
static InjectionResolver<?> |
Utilities.getInjectionResolver(ServiceLocatorImpl locator,
java.lang.reflect.AnnotatedElement annotatedGuy)
Returns an injection resolver for this AnnotatedElement.
|
static InjectionResolver<?> |
Utilities.getInjectionResolver(ServiceLocatorImpl locator,
Injectee injectee)
Returns an injection resolver for the injectee
|
static ActiveDescriptor<InjectionResolver<Inject>> |
Utilities.getThreeThirtyDescriptor(ServiceLocatorImpl locator)
Creates a Three Thirty constant active descriptor
|
static <T> T |
Utilities.justCreate(java.lang.Class<T> createMe,
ServiceLocatorImpl locator,
java.lang.String strategy)
Just creates the thing, doesn't try to do anything else
|
static void |
Utilities.justInject(java.lang.Object injectMe,
ServiceLocatorImpl locator,
java.lang.String strategy)
Just creates the thing, doesn't try to do anything else
|
static void |
Utilities.justPostConstruct(java.lang.Object postMe,
ServiceLocatorImpl locator,
java.lang.String strategy)
Post constructs the given object
|
static void |
Utilities.justPreDestroy(java.lang.Object preMe,
ServiceLocatorImpl locator,
java.lang.String strategy)
Pre Destroys the given object
|
| Constructor and Description |
|---|
DefaultClassAnalyzer(ServiceLocatorImpl locator) |
DynamicConfigurationImpl(ServiceLocatorImpl locator)
Created by the generator, and hence must be public
|
ServiceLocatorImpl(java.lang.String name,
ServiceLocatorImpl parent)
Called by the Generator, and hence must be a public method
|
Copyright © 2013 Oracle Corporation. All Rights Reserved.