Uses of Class
org.elasticsearch.common.inject.TypeLiteral
-
-
Uses of TypeLiteral in org.elasticsearch.common.inject
Methods in org.elasticsearch.common.inject that return TypeLiteral Modifier and Type Method Description static <T> TypeLiteral<T>TypeLiteral. get(Class<T> type)Gets type literal for the givenClassinstance.static TypeLiteral<?>TypeLiteral. get(Type type)Gets type literal for the givenTypeinstance.TypeLiteral<?>TypeLiteral. getFieldType(Field field)Returns the resolved generic type offield.TypeLiteral<?>TypeLiteral. getReturnType(Method method)Returns the resolved generic return type ofmethod.TypeLiteral<?>TypeLiteral. getSupertype(Class<?> supertype)Returns the generic form ofsupertype.TypeLiteral<T>Key. getTypeLiteral()Gets the key type.Methods in org.elasticsearch.common.inject that return types with arguments of type TypeLiteral Modifier and Type Method Description List<TypeLiteral<?>>TypeLiteral. getExceptionTypes(Member methodOrConstructor)Returns the resolved generic exception types thrown byconstructor.List<TypeLiteral<?>>TypeLiteral. getParameterTypes(Member methodOrConstructor)Returns the resolved generic parameter types ofmethodOrConstructor.Methods in org.elasticsearch.common.inject with parameters of type TypeLiteral Modifier and Type Method Description protected <T> AnnotatedBindingBuilder<T>AbstractModule. bind(TypeLiteral<T> typeLiteral)<T> AnnotatedBindingBuilder<T>Binder. bind(TypeLiteral<T> typeLiteral)See the EDSL examples atBinder.protected <T> AnnotatedBindingBuilder<T>PrivateModule. bind(TypeLiteral<T> typeLiteral)AnnotatedElementBuilderPrivateBinder. expose(TypeLiteral<?> type)Makes a binding fortypeavailable to the enclosing environment.protected AnnotatedElementBuilderPrivateModule. expose(TypeLiteral<?> type)Makes a binding fortypeavailable to other modules and the injector.<T> List<Binding<T>>Injector. findBindingsByType(TypeLiteral<T> type)Returns all explicit bindings fortype.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, Annotation annotation)Gets a key for an injection type and an annotation.static <T> Key<T>Key. get(TypeLiteral<T> typeLiteral, Class<? extends Annotation> annotationType)Gets a key for an injection type and an annotation type.protected <T> MembersInjector<T>AbstractModule. getMembersInjector(TypeLiteral<T> type)<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 typeT.<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 typeT.protected <T> MembersInjector<T>PrivateModule. getMembersInjector(TypeLiteral<T> type)<T> voidBinder. requestInjection(TypeLiteral<T> type, T instance)Upon successful creation, theInjectorwill inject instance fields and methods of the given object.Method parameters in org.elasticsearch.common.inject with type arguments of type TypeLiteral Modifier and Type Method Description protected voidAbstractModule. bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener)voidBinder. bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener)Registers a listener for injectable types.protected voidAbstractModule. convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter)voidBinder. convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter)Binds a type converter. -
Uses of TypeLiteral in org.elasticsearch.common.inject.binder
Methods in org.elasticsearch.common.inject.binder with parameters of type TypeLiteral Modifier and Type Method Description ScopedBindingBuilderLinkedBindingBuilder. to(TypeLiteral<? extends T> implementation)See the EDSL examples atBinder. -
Uses of TypeLiteral in org.elasticsearch.common.inject.internal
Methods in org.elasticsearch.common.inject.internal that return TypeLiteral Modifier and Type Method Description static <T> TypeLiteral<T>MoreTypes. makeKeySafe(TypeLiteral<T> type)Returns an equivalent type that's safe for use in a key.Methods in org.elasticsearch.common.inject.internal that return types with arguments of type TypeLiteral Modifier and Type Method Description Matcher<? super TypeLiteral<?>>MatcherAndConverter. getTypeMatcher()Methods in org.elasticsearch.common.inject.internal with parameters of type TypeLiteral Modifier and Type Method Description ErrorsErrors. ambiguousTypeConversion(String stringValue, Object source, TypeLiteral<?> type, MatcherAndConverter a, MatcherAndConverter b)ErrorsErrors. conversionError(String stringValue, Object source, TypeLiteral<?> type, MatcherAndConverter matchingConverter, RuntimeException cause)ErrorsErrors. conversionTypeError(String stringValue, Object source, TypeLiteral<?> type, MatcherAndConverter matchingConverter, Object converted)ErrorsErrors. converterReturnedNull(String stringValue, Object source, TypeLiteral<?> type, MatcherAndConverter matchingConverter)ErrorsErrors. errorInUserInjector(MembersInjector<?> listener, TypeLiteral<?> type, RuntimeException cause)ErrorsErrors. errorNotifyingInjectionListener(InjectionListener<?> listener, TypeLiteral<?> type, RuntimeException cause)ErrorsErrors. errorNotifyingTypeListener(TypeListenerBinding listener, TypeLiteral<?> type, Throwable cause)static Key<?>Annotations. getKey(TypeLiteral<?> type, Member member, 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 org.elasticsearch.common.inject.internal with type arguments of type TypeLiteral Constructor Description MatcherAndConverter(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter typeConverter, Object source) -
Uses of TypeLiteral in org.elasticsearch.common.inject.multibindings
Methods in org.elasticsearch.common.inject.multibindings with parameters of type TypeLiteral Modifier and Type Method Description static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound with no binding annotation.static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Annotation annotation)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotation.static <K,V>
MapBinder<K,V>MapBinder. newMapBinder(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Class<? extends Annotation> annotationType)Returns a new mapbinder that collects entries ofkeyType/valueTypein aMapthat is itself bound withannotationType.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, TypeLiteral<T> type)Returns a new multibinder that collects instances oftypein aSetthat is itself bound with no binding annotation.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, TypeLiteral<T> type, Annotation annotation)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotation.static <T> Multibinder<T>Multibinder. newSetBinder(Binder binder, TypeLiteral<T> type, Class<? extends Annotation> annotationType)Returns a new multibinder that collects instances oftypein aSetthat is itself bound withannotationType. -
Uses of TypeLiteral in org.elasticsearch.common.inject.spi
Methods in org.elasticsearch.common.inject.spi that return TypeLiteral Modifier and Type Method Description TypeLiteral<T>InjectionRequest. getType()TypeLiteral<T>MembersInjectorLookup. getType()Gets the type containing the members to be injected.Methods in org.elasticsearch.common.inject.spi that return types with arguments of type TypeLiteral Modifier and Type Method Description 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 org.elasticsearch.common.inject.spi with parameters of type TypeLiteral Modifier and Type Method Description ObjectTypeConverter. convert(String value, TypeLiteral<?> toType)Converts a string value.static InjectionPointInjectionPoint. forConstructorOf(TypeLiteral<?> type)Returns a new injection point for the injectable constructor oftype.static Set<InjectionPoint>InjectionPoint. forInstanceMethodsAndFields(TypeLiteral<?> type)Returns all instance method and field injection points ontype.static Set<InjectionPoint>InjectionPoint. forStaticMethodsAndFields(TypeLiteral type)Returns all static method and field injection points ontype.<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 typeT.<I> voidTypeListener. hear(TypeLiteral<I> type, TypeEncounter<I> encounter)Invoked when Guice encounters a new type eligible for constructor or members injection.Constructors in org.elasticsearch.common.inject.spi with parameters of type TypeLiteral Constructor Description InjectionRequest(Object source, TypeLiteral<T> type, T instance)MembersInjectorLookup(Object source, TypeLiteral<T> type)
-