org.jboss.errai.ioc.rebind.ioc.injector.api
Class InjectableInstance<T extends Annotation>
java.lang.Object
org.jboss.errai.ioc.rebind.ioc.injector.api.InjectionPoint<T>
org.jboss.errai.ioc.rebind.ioc.injector.api.InjectableInstance<T>
public class InjectableInstance<T extends Annotation>
- extends InjectionPoint<T>
Method Summary |
void |
addTransientValue(String name,
Class type,
Statement valueRef)
Record a transient value -- ie. |
void |
addTransientValue(String name,
MetaClass type,
Statement valueRef)
|
Statement |
callOrBind(Statement... values)
|
static
|
getFieldInjectedInstance(MetaField field,
Injector injector,
InjectionContext context)
|
static
|
getInjectedInstance(T annotation,
MetaClass type,
Injector injector,
InjectionContext context)
|
static
|
getMethodInjectedInstance(MetaMethod method,
Injector injector,
InjectionContext context)
|
static
|
getParameterInjectedInstance(MetaParameter parm,
Injector injector,
InjectionContext context)
|
Injector |
getTargetInjector()
|
Statement |
getTransientValue(String name,
Class type)
|
Statement |
getTransientValue(String name,
MetaClass type)
|
Statement |
getValueStatement()
Returns an instance of a Statement which represents the value associated for injection at this
InjectionPoint. |
boolean |
hasAnyUnsatified()
|
boolean |
hasUnsatisfiedTransientValue(String name,
MetaClass type)
|
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.injector.api.InjectionPoint |
ensureMemberExposed, ensureMemberExposed, getAnnotation, getAnnotation, getAnnotations, getConstructor, getElementType, getElementTypeOrMethodReturnType, getEnclosingType, getField, getInjectionContext, getInjector, getMemberName, getMethod, getParm, getQualifiers, getQualifyingMetadata, getRawAnnotation, getTaskType, isAnnotationPresent, isProxy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectableInstance
public InjectableInstance(T annotation,
TaskType taskType,
MetaConstructor constructor,
MetaMethod method,
MetaField field,
MetaClass type,
MetaParameter parm,
Injector injector,
InjectionContext injectionContext)
getInjectedInstance
public static <T extends Annotation> InjectableInstance<T> getInjectedInstance(T annotation,
MetaClass type,
Injector injector,
InjectionContext context)
getMethodInjectedInstance
public static <T extends Annotation> InjectableInstance<T> getMethodInjectedInstance(MetaMethod method,
Injector injector,
InjectionContext context)
getParameterInjectedInstance
public static <T extends Annotation> InjectableInstance<T> getParameterInjectedInstance(MetaParameter parm,
Injector injector,
InjectionContext context)
getFieldInjectedInstance
public static <T extends Annotation> InjectableInstance<T> getFieldInjectedInstance(MetaField field,
Injector injector,
InjectionContext context)
addTransientValue
public void addTransientValue(String name,
Class type,
Statement valueRef)
- Record a transient value -- ie. a value we want the IOC container to track and be referenceable
while wiring the code, but not something that is injected.
addTransientValue
public void addTransientValue(String name,
MetaClass type,
Statement valueRef)
getTransientValue
public Statement getTransientValue(String name,
Class type)
getTransientValue
public Statement getTransientValue(String name,
MetaClass type)
hasAnyUnsatified
public boolean hasAnyUnsatified()
hasUnsatisfiedTransientValue
public boolean hasUnsatisfiedTransientValue(String name,
MetaClass type)
getValueStatement
public Statement getValueStatement()
- Returns an instance of a
Statement
which represents the value associated for injection at this
InjectionPoint. This statement may represent a raw field access, a method call to a getter method, or an
internalized variable in the bootstrapper which is holding the value.
- Returns:
- a statement representing the value of the injection point.
getTargetInjector
public Injector getTargetInjector()
callOrBind
public Statement callOrBind(Statement... values)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.