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,
ServiceLocatorImpl locator,
Collector collector) |
Finds the post construct method on this class
|
static java.lang.reflect.Method |
Utilities.findPreDestroy(java.lang.Class<?> clazz,
ServiceLocatorImpl locator,
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
|
(package private) ClassAnalyzer |
ServiceLocatorImpl.getAnalyzer(java.lang.String name,
Collector collector) |
|
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.
|
private ActiveDescriptor<?> |
SystemDescriptor.getFactoryDescriptor(java.lang.reflect.Method provideMethod,
java.lang.reflect.Type factoryProvidedType,
ServiceLocatorImpl locator,
Collector collector) |
|
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 ScopeInfo |
Utilities.getScopeAnnotationType(java.lang.reflect.AnnotatedElement annotatedGuy,
Descriptor defaultScope,
Collector collector) |
Returns the scope of this thing
|
private static ScopeInfo |
Utilities.getScopeInfo(java.lang.reflect.AnnotatedElement annotatedGuy,
Descriptor defaultScope,
Collector collector) |
|
(package private) void |
ClazzCreator.initialize(ActiveDescriptor<?> selfDescriptor,
java.lang.String analyzerName,
Collector collector) |
|
(package private) void |
ClazzCreator.initialize(ActiveDescriptor<?> selfDescriptor,
Collector collector) |
|
private static java.lang.annotation.Annotation |
Utilities.internalGetScopeAnnotationType(java.lang.reflect.AnnotatedElement annotatedGuy,
Collector collector) |
This returns the scope annotation on this class *itself*, and no other
classes (like, not subclasses).
|
private void |
SystemDescriptor.internalReify(java.lang.Class<?> implClass,
Collector collector) |
The service locator must hold its lock for this cal
|
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
|
(package private) void |
SystemDescriptor.reify(java.lang.Class<?> implClass,
Collector collector) |
|
private void |
ClazzCreator.resolve(java.util.Map<SystemInjecteeImpl,java.lang.Object> addToMe,
InjectionResolver<?> resolver,
SystemInjecteeImpl injectee,
ServiceHandle<?> root,
Collector errorCollection) |
|
static void |
Utilities.validateSelfInjectees(ActiveDescriptor<?> givenDescriptor,
java.util.List<SystemInjecteeImpl> injectees,
Collector collector) |
This method validates a list of injectees to ensure that any self injectees have
the proper set of requirements.
|