static void |
Utilities.checkFactoryType(Class<?> factoryClass,
Collector collector) |
Checks to be sure the Factory class is ok
|
static Set<Field> |
Utilities.findInitializerFields(Class<?> annotatedType,
ServiceLocatorImpl locator,
Collector errorCollector) |
Will find all the initialize fields in the class
|
static Set<Method> |
Utilities.findInitializerMethods(Class<?> annotatedType,
ServiceLocatorImpl locator,
Collector errorCollector) |
Get all the initializer methods of the annotatedType.
|
static Method |
Utilities.findPostConstruct(Class<?> clazz,
ServiceLocatorImpl locator,
Collector collector) |
Finds the post construct method on this class
|
static Method |
Utilities.findPreDestroy(Class<?> clazz,
ServiceLocatorImpl locator,
Collector collector) |
Finds the pre destroy method on this class
|
static Constructor<?> |
Utilities.findProducerConstructor(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 Set<Annotation> |
Utilities.getAllQualifiers(AnnotatedElement annotatedGuy,
String name,
Collector collector) |
Returns the full set of qualifier annotations on this class
|
static ClassAnalyzer |
Utilities.getClassAnalyzer(ServiceLocatorImpl sli,
String analyzerName,
Collector errorCollector) |
Returns the class analyzer with the given name
|
static <T> Constructor<T> |
Utilities.getConstructor(Class<T> implClass,
ClassAnalyzer analyzer,
Collector collector) |
Gets the constructor given the implClass and analyzer.
|
static String |
Utilities.getDefaultNameFromMethod(Method parent,
Collector collector) |
Returns the default name if one can be found.
|
static Set<Field> |
Utilities.getInitFields(Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector) |
Gets the initializer fields from the given class and analyzer.
|
static Set<Method> |
Utilities.getInitMethods(Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector) |
Gets the initializer methods from the given class and analyzer.
|
static Method |
Utilities.getPostConstruct(Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector) |
Gets the post construct from the analyzer, checking output
|
static Method |
Utilities.getPreDestroy(Class<?> implClass,
ClassAnalyzer analyzer,
Collector collector) |
Gets the preDestroy from the analyzer, checking output
|
static ScopeInfo |
Utilities.getScopeAnnotationType(AnnotatedElement annotatedGuy,
Descriptor defaultScope,
Collector collector) |
Returns the scope of this thing
|
static Class<?> |
Utilities.loadClass(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,
List<SystemInjecteeImpl> injectees,
Collector collector) |
This method validates a list of injectees to ensure that any self injectees have
the proper set of requirements.
|