public class QualifiedTypeInjectorDelegate extends AbstractInjector
AbstractInjector.RegisterCache
Modifier and Type | Field and Description |
---|---|
protected Injector |
delegate |
protected MetaClass |
type |
_registerCache, alternative, attributes, basic, beanName, creationalCallbackVarName, enabled, enclosingType, postInitCallbackVar, preDestroyCallbackVar, provider, qualifyingMetadata, qualifyingTypeInformation, replaceable, singleton, softDisabled, testMock
Constructor and Description |
---|
QualifiedTypeInjectorDelegate(MetaClass type,
Injector delegate,
MetaParameterizedType parameterizedType) |
Modifier and Type | Method and Description |
---|---|
Statement |
getBeanInstance(InjectableInstance injectableInstance)
Return a statement providing access to the injector (or null for asynchronous logic)
|
MetaClass |
getConcreteInjectedType()
Returns the concrete type that will be returned by this injector.
|
String |
getCreationalCallbackVarName()
The unique variable name for a BeanProvider associated with this bean.
|
Injector |
getDelegate() |
MetaClass |
getEnclosingType()
The enclosing type of the injector.
|
MetaClass |
getInjectedType()
The injected type of the injector.
|
String |
getInstanceVarName()
The unique variable name for the bean instance.
|
String |
getPostInitCallbackVar()
The unique variable name for the InitalizationCallback associated with a bean CreationalContext in the
boostrapper method.
|
String |
getPreDestroyCallbackVar()
The unique variable name for the DestructionCallback associated with the BeanProvider for this bean.
|
boolean |
isAlternative()
Checks if the injector an alternative.
|
boolean |
isDependent()
Check if the injector if of the dependent scope.
|
boolean |
isEnabled()
Checks if the injector is enabled, and is eligible for injection consideration.
|
boolean |
isProvider()
Checks if the injector represents a provider.
|
boolean |
isPseudo()
Checks if the injector is a psuedo bean.
|
boolean |
isRendered()
Checks if the injector's BeanProvider already been rendered.
|
boolean |
isSingleton()
Checks if the injector for a singleton bean.
|
boolean |
isSoftDisabled()
Checks if the injector is soft disabled.
|
boolean |
isTestMock()
Checks if the injector represents a test mock.
|
void |
registerWithBeanManager(InjectionContext context,
Statement valueRef) |
void |
renderProvider(InjectableInstance injectableInstance) |
void |
setEnabled(boolean enabled)
Set the enabled state of the bean.
|
void |
setPostInitCallbackVar(String var)
Sets a variable name reference to the InitializationCallback to associate with the BeanProvider for this bean.
|
void |
setPreDestroyCallbackVar(String preDestroyCallbackVar)
Sets a variable name reference to the DestructionCallback to associate with this BeanProvider for this bean.
|
void |
setSoftDisabled(boolean softDisabled) |
String |
toString() |
addDisablingHook, addInvokeAfter, addInvokeAround, addInvokeBefore, addProxyProperty, addProxyProperty, addRegistrationHook, addRenderingHook, addStatementToEndOfInjector, createProxyDeclaration, createProxyDeclaration, disableSoftly, getAddToEndStatements, getAttribute, getBeanName, getDisablingCallbacks, getMetadataWithAny, getProxyInstanceVarName, getProxyPropertyMap, getQualifyingMetadata, getQualifyingTypeInformation, getRegistrationHooks, getRenderingHooks, getWeavingStatements, getWeavingStatementsMap, hasAttribute, hasNewQualifier, isCreated, isProxied, isRegularTypeInjector, isStatic, markRendered, matches, setAttribute, setCreated, setCreationalCallbackVarName, setRendered, setReplaceable, updateProxies
public QualifiedTypeInjectorDelegate(MetaClass type, Injector delegate, MetaParameterizedType parameterizedType)
public void renderProvider(InjectableInstance injectableInstance)
public boolean isRendered()
Injector
isRendered
in interface Injector
isRendered
in class AbstractInjector
public boolean isTestMock()
Injector
isTestMock
in interface Injector
isTestMock
in class AbstractInjector
public boolean isSingleton()
Injector
isSingleton
in interface Injector
isSingleton
in class AbstractInjector
public boolean isPseudo()
Injector
isPseudo
in interface Injector
isPseudo
in class AbstractInjector
public String getInstanceVarName()
Injector
getInstanceVarName
in interface Injector
getInstanceVarName
in class AbstractInjector
public MetaClass getInjectedType()
Injector
public Statement getBeanInstance(InjectableInstance injectableInstance)
Injector
public boolean isDependent()
Injector
isDependent
in interface Injector
isDependent
in class AbstractInjector
public boolean isProvider()
Injector
isProvider
in interface Injector
isProvider
in class AbstractInjector
public MetaClass getEnclosingType()
Injector
getEnclosingType
in interface Injector
getEnclosingType
in class AbstractInjector
public String getPostInitCallbackVar()
Injector
getPostInitCallbackVar
in interface Injector
getPostInitCallbackVar
in class AbstractInjector
public String getPreDestroyCallbackVar()
Injector
getPreDestroyCallbackVar
in interface Injector
getPreDestroyCallbackVar
in class AbstractInjector
public void setPostInitCallbackVar(String var)
Injector
setPostInitCallbackVar
in interface Injector
setPostInitCallbackVar
in class AbstractInjector
var
- a unique variable name pointing to an instance of InitializationCallback.public void setPreDestroyCallbackVar(String preDestroyCallbackVar)
Injector
setPreDestroyCallbackVar
in interface Injector
setPreDestroyCallbackVar
in class AbstractInjector
preDestroyCallbackVar
- a unique variable name pointing to an instance of InitializationCallbackpublic String getCreationalCallbackVarName()
Injector
getCreationalCallbackVarName
in interface Injector
getCreationalCallbackVarName
in class AbstractInjector
public void registerWithBeanManager(InjectionContext context, Statement valueRef)
registerWithBeanManager
in class AbstractInjector
public MetaClass getConcreteInjectedType()
Injector
getConcreteInjectedType
in interface Injector
getConcreteInjectedType
in class AbstractInjector
public boolean isAlternative()
Injector
isAlternative
in interface Injector
isAlternative
in class AbstractInjector
public boolean isSoftDisabled()
Injector
isSoftDisabled
in interface Injector
isSoftDisabled
in class AbstractInjector
public void setSoftDisabled(boolean softDisabled)
setSoftDisabled
in class AbstractInjector
public boolean isEnabled()
Injector
isEnabled
in interface Injector
isEnabled
in class AbstractInjector
public void setEnabled(boolean enabled)
Injector
setEnabled
in interface Injector
setEnabled
in class AbstractInjector
enabled
- the enabled state of the bean to set (true for enabled, false for disabled).public String toString()
toString
in class AbstractInjector
public Injector getDelegate()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.