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