| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(java.lang.Class<T> type)
Returns a bean of given type.
|
<T> Provider<T> |
getProvider(java.lang.Class<T> type)
Returns a provider of given type.
|
boolean |
isInheritedScopeStopper(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class is a
StopInheritedScope annotation or alias of that annotation. |
boolean |
isPostConstructProcessor(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class specifies a
PostConstructProcessor. |
boolean |
isQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class is a
Qualifier. |
boolean |
isScope(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class is a
Scope annotation. |
java.lang.Class<? extends java.lang.annotation.Annotation> |
scopeByAlias(java.lang.Class<? extends java.lang.annotation.Annotation> alias)
Returns the scope annotation type from an alias annotation type.
|
<T> T get(java.lang.Class<T> type)
Returns a bean of given type.
T - generic type of the beantype - the class of the bean<T> Provider<T> getProvider(java.lang.Class<T> type)
Returns a provider of given type.
T - the generic type of the beantype - the class of the bean that provider providesboolean isQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class is a Qualifier.
annoClass - the annotation typetrue if the annotation type is a qualifier or false otherwiseboolean isPostConstructProcessor(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class specifies a PostConstructProcessor.
annoClass - the annotation typetrue if the annotation type specifies post construct processorboolean isScope(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class is a Scope annotation.
annoClass - the annotation typetrue if the annotation type indicate a scopeboolean isInheritedScopeStopper(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)
Check if a supplied annotation class is a StopInheritedScope annotation or alias of that annotation.
annoClass - the annotation typetrue if the annotation type is inherited scope stopperjava.lang.Class<? extends java.lang.annotation.Annotation> scopeByAlias(java.lang.Class<? extends java.lang.annotation.Annotation> alias)
Returns the scope annotation type from an alias annotation type.
alias - the alias of the scope annotationCopyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.