Uses of Class
com.google.inject.TypeLiteral

Packages that use TypeLiteral
com.google.inject Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework. 
com.google.inject.binder Interfaces which make up Binder's expression language. 
com.google.inject.internal Guice (sounds like like "juice") 
com.google.inject.spi Guice service provider interface 
 

Uses of TypeLiteral in com.google.inject
 

Methods in com.google.inject that return TypeLiteral
static
<T> TypeLiteral<T>
TypeLiteral.get(java.lang.Class<T> type)
          Gets type literal for the given Class instance.
static TypeLiteral<?> TypeLiteral.get(java.lang.reflect.Type type)
          Gets type literal for the given Type instance.
 TypeLiteral<?> TypeLiteral.getFieldType(java.lang.reflect.Field field)
          Returns the resolved generic type of field.
 TypeLiteral<?> TypeLiteral.getReturnType(java.lang.reflect.Method method)
          Returns the resolved generic return type of method.
 TypeLiteral<?> TypeLiteral.getSupertype(java.lang.Class<?> supertype)
          Returns the generic form of supertype.
 TypeLiteral<T> Key.getTypeLiteral()
          Gets the key type.
 

Methods in com.google.inject that return types with arguments of type TypeLiteral
 java.util.List<TypeLiteral<?>> TypeLiteral.getExceptionTypes(java.lang.reflect.Member methodOrConstructor)
          Returns the resolved generic exception types thrown by constructor.
 java.util.List<TypeLiteral<?>> TypeLiteral.getParameterTypes(java.lang.reflect.Member methodOrConstructor)
          Returns the resolved generic parameter types of methodOrConstructor.
 

Methods in com.google.inject with parameters of type TypeLiteral
<T> AnnotatedBindingBuilder<T>
Binder.bind(TypeLiteral<T> typeLiteral)
          See the EDSL examples at Binder.
protected
<T> AnnotatedBindingBuilder<T>
PrivateModule.bind(TypeLiteral<T> typeLiteral)
           
protected
<T> AnnotatedBindingBuilder<T>
AbstractModule.bind(TypeLiteral<T> typeLiteral)
           
 AnnotatedElementBuilder PrivateBinder.expose(TypeLiteral<?> type)
          Makes a binding for type available to the enclosing environment.
protected  AnnotatedElementBuilder PrivateModule.expose(TypeLiteral<?> type)
          Makes a binding for type available to other modules and the injector.
<T> java.util.List<Binding<T>>
Injector.findBindingsByType(TypeLiteral<T> type)
          Returns all explicit bindings for type.
static
<T> Key<T>
Key.get(TypeLiteral<T> typeLiteral)
          Gets a key for an injection type.
static
<T> Key<T>
Key.get(TypeLiteral<T> typeLiteral, java.lang.annotation.Annotation annotation)
          Gets a key for an injection type and an annotation.
static
<T> Key<T>
Key.get(TypeLiteral<T> typeLiteral, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets a key for an injection type and an annotation type.
<T> MembersInjector<T>
Injector.getMembersInjector(TypeLiteral<T> typeLiteral)
          Returns the members injector used to inject dependencies into methods and fields on instances of the given type T.
<T> MembersInjector<T>
Binder.getMembersInjector(TypeLiteral<T> typeLiteral)
          Returns the members injector used to inject dependencies into methods and fields on instances of the given type T.
protected
<T> MembersInjector<T>
PrivateModule.getMembersInjector(TypeLiteral<T> type)
           
protected
<T> MembersInjector<T>
AbstractModule.getMembersInjector(TypeLiteral<T> type)
           
<T> void
Binder.requestInjection(TypeLiteral<T> type, T instance)
          Upon successful creation, the Injector will inject instance fields and methods of the given object.
 

Method parameters in com.google.inject with type arguments of type TypeLiteral
 void Binder.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener)
          Registers a listener for injectable types.
protected  void PrivateModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener)
           
protected  void AbstractModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener)
           
 void Binder.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter)
          Binds a type converter.
protected  void PrivateModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter)
           
protected  void AbstractModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter)
           
 

Uses of TypeLiteral in com.google.inject.binder
 

Methods in com.google.inject.binder with parameters of type TypeLiteral
 ScopedBindingBuilder LinkedBindingBuilder.to(TypeLiteral<? extends T> implementation)
          See the EDSL examples at Binder.
 

Uses of TypeLiteral in com.google.inject.internal
 

Methods in com.google.inject.internal that return TypeLiteral
static
<T> TypeLiteral<T>
MoreTypes.makeKeySafe(TypeLiteral<T> type)
          Returns an equivalent type that's safe for use in a key.
 

Methods in com.google.inject.internal that return types with arguments of type TypeLiteral
 Matcher<? super TypeLiteral<?>> MatcherAndConverter.getTypeMatcher()
           
 

Methods in com.google.inject.internal with parameters of type TypeLiteral
 Errors Errors.ambiguousTypeConversion(java.lang.String stringValue, java.lang.Object source, TypeLiteral<?> type, MatcherAndConverter a, MatcherAndConverter b)
           
 Errors Errors.conversionError(java.lang.String stringValue, java.lang.Object source, TypeLiteral<?> type, MatcherAndConverter matchingConverter, java.lang.RuntimeException cause)
           
 Errors Errors.conversionTypeError(java.lang.String stringValue, java.lang.Object source, TypeLiteral<?> type, MatcherAndConverter matchingConverter, java.lang.Object converted)
           
 Errors Errors.converterReturnedNull(java.lang.String stringValue, java.lang.Object source, TypeLiteral<?> type, MatcherAndConverter matchingConverter)
           
 Errors Errors.errorInUserInjector(MembersInjector<?> listener, TypeLiteral<?> type, java.lang.RuntimeException cause)
           
 Errors Errors.errorNotifyingInjectionListener(InjectionListener<?> listener, TypeLiteral<?> type, java.lang.RuntimeException cause)
           
 Errors Errors.errorNotifyingTypeListener(TypeListenerBinding listener, TypeLiteral<?> type, java.lang.Throwable cause)
           
static Key<?> Annotations.getKey(TypeLiteral<?> type, java.lang.reflect.Member member, java.lang.annotation.Annotation[] annotations, Errors errors)
          Gets a key for the given type, member and annotations.
static
<T> TypeLiteral<T>
MoreTypes.makeKeySafe(TypeLiteral<T> type)
          Returns an equivalent type that's safe for use in a key.
 BindingBuilder<T> BindingBuilder.to(TypeLiteral<? extends T> implementation)
           
 

Constructor parameters in com.google.inject.internal with type arguments of type TypeLiteral
MatcherAndConverter(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter typeConverter, java.lang.Object source)
           
 

Uses of TypeLiteral in com.google.inject.spi
 

Methods in com.google.inject.spi that return TypeLiteral
 TypeLiteral<T> MembersInjectorLookup.getType()
          Gets the type containing the members to be injected.
 TypeLiteral<T> InjectionRequest.getType()
           
 

Methods in com.google.inject.spi that return types with arguments of type TypeLiteral
 Matcher<? super TypeLiteral<?>> TypeConverterBinding.getTypeMatcher()
           
 Matcher<? super TypeLiteral<?>> TypeListenerBinding.getTypeMatcher()
          Returns the type matcher which chooses which types the listener should be notified of.
 

Methods in com.google.inject.spi with parameters of type TypeLiteral
 java.lang.Object TypeConverter.convert(java.lang.String value, TypeLiteral<?> toType)
          Converts a string value.
static InjectionPoint InjectionPoint.forConstructorOf(TypeLiteral<?> type)
          Returns a new injection point for the injectable constructor of type.
static java.util.Set<InjectionPoint> InjectionPoint.forInstanceMethodsAndFields(TypeLiteral<?> type)
          Returns all instance method and field injection points on type.
static java.util.Set<InjectionPoint> InjectionPoint.forStaticMethodsAndFields(TypeLiteral type)
          Returns all static method and field injection points on type.
<T> MembersInjector<T>
TypeEncounter.getMembersInjector(TypeLiteral<T> typeLiteral)
          Returns the members injector used to inject dependencies into methods and fields on instances of the given type T.
<I> void
TypeListener.hear(TypeLiteral<I> type, TypeEncounter<I> encounter)
          Invoked when Guice encounters a new type eligible for constructor or members injection.
 

Constructors in com.google.inject.spi with parameters of type TypeLiteral
InjectionRequest(java.lang.Object source, TypeLiteral<T> type, T instance)
           
MembersInjectorLookup(java.lang.Object source, TypeLiteral<T> type)
           
 



Copyright © 2011. All Rights Reserved.