org.jboss.errai.ioc.rebind.ioc
Class InjectUtil

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.InjectUtil

public class InjectUtil
extends Object


Constructor Summary
InjectUtil()
           
 
Method Summary
static MetaClass[] classToMeta(Class<?>[] types)
           
static String commaDelimitedList(Context context, Statement[] parts)
           
static List<Annotation> extractQualifiers(InjectableInstance<? extends Annotation> injectableInstance)
           
static Annotation[] extractQualifiersAsArray(InjectableInstance<?> injectableInstance)
           
static List<Annotation> extractQualifiersFromField(MetaField field)
           
static List<Annotation> extractQualifiersFromMethod(MetaMethod method)
           
static List<Annotation> extractQualifiersFromParameter(MetaParameter parm)
           
static List<Annotation> extractQualifiersFromType(MetaClass type)
           
static ConstructionStrategy getConstructionStrategy(Injector injector, InjectionContext ctx)
           
static Set<Class<?>> getKnownAnnotationsCache()
           
static String getNewVarName()
           
static Class<?> getPrimitiveOrClass(com.google.gwt.core.ext.typeinfo.JParameter parm)
           
static Set<Class<?>> getQualifiersCache()
           
static Class<?>[] jParmToClass(com.google.gwt.core.ext.typeinfo.JParameter[] parms)
           
static Class<?> loadClass(String name)
           
static Field loadField(com.google.gwt.core.ext.typeinfo.JField field)
           
static Method loadMethod(com.google.gwt.core.ext.typeinfo.JMethod method)
           
static Statement[] resolveInjectionDependencies(MetaParameter[] parms, InjectionContext ctx, InjectableInstance injectableInstance)
           
static Statement[] resolveInjectionDependencies(MetaParameter[] parms, InjectionContext ctx, MetaConstructor constructor)
           
static Statement[] resolveInjectionDependencies(MetaParameter[] parms, InjectionContext ctx, MetaMethod method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectUtil

public InjectUtil()
Method Detail

getConstructionStrategy

public static ConstructionStrategy getConstructionStrategy(Injector injector,
                                                           InjectionContext ctx)

resolveInjectionDependencies

public static Statement[] resolveInjectionDependencies(MetaParameter[] parms,
                                                       InjectionContext ctx,
                                                       MetaMethod method)

resolveInjectionDependencies

public static Statement[] resolveInjectionDependencies(MetaParameter[] parms,
                                                       InjectionContext ctx,
                                                       MetaConstructor constructor)

resolveInjectionDependencies

public static Statement[] resolveInjectionDependencies(MetaParameter[] parms,
                                                       InjectionContext ctx,
                                                       InjectableInstance injectableInstance)

commaDelimitedList

public static String commaDelimitedList(Context context,
                                        Statement[] parts)

getNewVarName

public static String getNewVarName()

getQualifiersCache

public static Set<Class<?>> getQualifiersCache()

getKnownAnnotationsCache

public static Set<Class<?>> getKnownAnnotationsCache()

extractQualifiersAsArray

public static Annotation[] extractQualifiersAsArray(InjectableInstance<?> injectableInstance)

extractQualifiers

public static List<Annotation> extractQualifiers(InjectableInstance<? extends Annotation> injectableInstance)

extractQualifiersFromMethod

public static List<Annotation> extractQualifiersFromMethod(MetaMethod method)

extractQualifiersFromParameter

public static List<Annotation> extractQualifiersFromParameter(MetaParameter parm)

extractQualifiersFromField

public static List<Annotation> extractQualifiersFromField(MetaField field)

extractQualifiersFromType

public static List<Annotation> extractQualifiersFromType(MetaClass type)

loadClass

public static Class<?> loadClass(String name)

loadField

public static Field loadField(com.google.gwt.core.ext.typeinfo.JField field)

loadMethod

public static Method loadMethod(com.google.gwt.core.ext.typeinfo.JMethod method)

jParmToClass

public static Class<?>[] jParmToClass(com.google.gwt.core.ext.typeinfo.JParameter[] parms)
                               throws ClassNotFoundException
Throws:
ClassNotFoundException

classToMeta

public static MetaClass[] classToMeta(Class<?>[] types)

getPrimitiveOrClass

public static Class<?> getPrimitiveOrClass(com.google.gwt.core.ext.typeinfo.JParameter parm)
                                    throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.