Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.rebind.ioc.injector.api
Class InjectableInstance<T extends Annotation>

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.injector.api.InjectionPoint<T>
      extended by org.jboss.errai.ioc.rebind.ioc.injector.api.InjectableInstance<T>

public class InjectableInstance<T extends Annotation>
extends InjectionPoint<T>


Field Summary
 
Fields inherited from class org.jboss.errai.ioc.rebind.ioc.injector.api.InjectionPoint
annotation, constructor, field, injectionContext, injector, method, parm, taskType, type
 
Constructor Summary
InjectableInstance(T annotation, TaskType taskType, MetaConstructor constructor, MetaMethod method, MetaField field, MetaClass type, MetaParameter parm, Injector injector, InjectionContext injectionContext)
           
 
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
<T extends Annotation>
InjectableInstance<T>
getFieldInjectedInstance(MetaField field, Injector injector, InjectionContext context)
           
static
<T extends Annotation>
InjectableInstance<T>
getInjectedInstance(T annotation, MetaClass type, Injector injector, InjectionContext context)
           
static
<T extends Annotation>
InjectableInstance<T>
getMethodInjectedInstance(MetaMethod method, Injector injector, InjectionContext context)
           
static
<T extends Annotation>
InjectableInstance<T>
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
 

Constructor Detail

InjectableInstance

public InjectableInstance(T annotation,
                          TaskType taskType,
                          MetaConstructor constructor,
                          MetaMethod method,
                          MetaField field,
                          MetaClass type,
                          MetaParameter parm,
                          Injector injector,
                          InjectionContext injectionContext)
Method Detail

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)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.