| 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
type - the class of the beanT - generic type of the bean<T> javax.inject.Provider<T> getProvider(Class<T> type)
Returns a provider of given type
type - the class of the bean that provider providesT - the generic type of the beanboolean isQualifier(Class<? extends Annotation> annoClass)
Check if a supplied annotation class is a Qualifier
annoClass - true 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 © 2017. All Rights Reserved.