|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.ioc.rebind.ioc.injector.AbstractInjector
org.jboss.errai.ioc.rebind.ioc.injector.basic.QualifiedTypeInjectorDelegate
public class QualifiedTypeInjectorDelegate
This injector wraps another injector to create qualifying references based on type parameters and qualifiers to the underlying bean. For instance if two beans implement a common interface, with two different type parameters, each bean will be wrapped in this injector and added as common injectors to the interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.errai.ioc.rebind.ioc.injector.AbstractInjector |
---|
AbstractInjector.RegisterCache |
Field Summary | |
---|---|
protected Injector |
delegate
|
protected MetaClass |
type
|
Fields inherited from class org.jboss.errai.ioc.rebind.ioc.injector.AbstractInjector |
---|
_registerCache, alternative, attributes, basic, beanName, creationalCallbackVarName, enabled, enclosingType, postInitCallbackVar, preDestroyCallbackVar, provider, qualifyingMetadata, qualifyingTypeInformation, replaceable, singleton, softDisabled, testMock |
Constructor Summary | |
---|---|
QualifiedTypeInjectorDelegate(MetaClass type,
Injector delegate,
MetaParameterizedType parameterizedType)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final MetaClass type
protected final Injector delegate
Constructor Detail |
---|
public QualifiedTypeInjectorDelegate(MetaClass type, Injector delegate, MetaParameterizedType parameterizedType)
Method Detail |
---|
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()
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |