|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TypeLiteral | |
---|---|
org.elasticsearch.common.inject | Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework. |
org.elasticsearch.common.inject.assistedinject | Extension for combining factory interfaces with injection; this extension requires guice-jndi-2.0.jar . |
org.elasticsearch.common.inject.binder | Interfaces which make up Binder 's
expression language. |
org.elasticsearch.common.inject.internal | Guice (sounds like like "juice") |
org.elasticsearch.common.inject.multibindings | Extension for binding multiple instances in a collection; this extension requires guice-multibindings-2.0.jar . |
org.elasticsearch.common.inject.spi | Guice service provider interface |
Uses of TypeLiteral in org.elasticsearch.common.inject |
---|
Methods in org.elasticsearch.common.inject that return TypeLiteral | ||
---|---|---|
static
|
TypeLiteral.get(Class<T> type)
Gets type literal for the given Class instance. |
|
static TypeLiteral<?> |
TypeLiteral.get(Type type)
Gets type literal for the given Type instance. |
|
TypeLiteral<?> |
TypeLiteral.getFieldType(Field field)
Returns the resolved generic type of field . |
|
TypeLiteral<?> |
TypeLiteral.getReturnType(Method method)
Returns the resolved generic return type of method . |
|
TypeLiteral<?> |
TypeLiteral.getSupertype(Class<?> supertype)
Returns the generic form of supertype . |
|
TypeLiteral<T> |
Key.getTypeLiteral()
Gets the key type. |
Methods in org.elasticsearch.common.inject that return types with arguments of type TypeLiteral | |
---|---|
List<TypeLiteral<?>> |
TypeLiteral.getExceptionTypes(Member methodOrConstructor)
Returns the resolved generic exception types thrown by constructor . |
List<TypeLiteral<?>> |
TypeLiteral.getParameterTypes(Member methodOrConstructor)
Returns the resolved generic parameter types of methodOrConstructor . |
Methods in org.elasticsearch.common.inject with parameters of type TypeLiteral | ||
---|---|---|
protected
|
PrivateModule.bind(TypeLiteral<T> typeLiteral)
|
|
|
Binder.bind(TypeLiteral<T> typeLiteral)
See the EDSL examples at Binder . |
|
protected
|
AbstractModule.bind(TypeLiteral<T> typeLiteral)
|
|
protected AnnotatedElementBuilder |
PrivateModule.expose(TypeLiteral<?> type)
Makes a binding for type available to other modules and the injector. |
|
AnnotatedElementBuilder |
PrivateBinder.expose(TypeLiteral<?> type)
Makes a binding for type available to the enclosing environment. |
|
|
Injector.findBindingsByType(TypeLiteral<T> type)
Returns all explicit bindings for type . |
|
static
|
Key.get(TypeLiteral<T> typeLiteral)
Gets a key for an injection type. |
|
static
|
Key.get(TypeLiteral<T> typeLiteral,
Annotation annotation)
Gets a key for an injection type and an annotation. |
|
static
|
Key.get(TypeLiteral<T> typeLiteral,
Class<? extends Annotation> annotationType)
Gets a key for an injection type and an annotation type. |
|
protected
|
PrivateModule.getMembersInjector(TypeLiteral<T> type)
|
|
|
Injector.getMembersInjector(TypeLiteral<T> typeLiteral)
Returns the members injector used to inject dependencies into methods and fields on instances of the given type 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
|
AbstractModule.getMembersInjector(TypeLiteral<T> type)
|
|
|
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 org.elasticsearch.common.inject with type arguments of type TypeLiteral | |
---|---|
protected void |
PrivateModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener)
|
void |
Binder.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener)
Registers a listener for injectable types. |
protected void |
AbstractModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener)
|
protected void |
PrivateModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter)
|
void |
Binder.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter)
Binds a type converter. |
protected void |
AbstractModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter)
|
Uses of TypeLiteral in org.elasticsearch.common.inject.assistedinject |
---|
Methods in org.elasticsearch.common.inject.assistedinject with parameters of type TypeLiteral | ||
---|---|---|
static
|
FactoryProvider.newFactory(TypeLiteral<F> factoryType,
TypeLiteral<?> implementationType)
|
|
static
|
FactoryProvider.newFactory(TypeLiteral<F> factoryType,
TypeLiteral<?> implementationType)
|
Uses of TypeLiteral in org.elasticsearch.common.inject.binder |
---|
Methods in org.elasticsearch.common.inject.binder with parameters of type TypeLiteral | |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.to(TypeLiteral<? extends T> implementation)
See the EDSL examples at Binder . |
Uses of TypeLiteral in org.elasticsearch.common.inject.internal |
---|
Methods in org.elasticsearch.common.inject.internal that return TypeLiteral | ||
---|---|---|
static
|
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 | |
---|---|
Matcher<? super TypeLiteral<?>> |
MatcherAndConverter.getTypeMatcher()
|
Constructor parameters in org.elasticsearch.common.inject.internal with type arguments of type TypeLiteral | |
---|---|
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 | ||
---|---|---|
static
|
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType)
Returns a new mapbinder that collects entries of keyType /valueType in a
Map that is itself bound with no binding annotation. |
|
static
|
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType)
Returns a new mapbinder that collects entries of keyType /valueType in a
Map that is itself bound with no binding annotation. |
|
static
|
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Annotation annotation)
Returns a new mapbinder that collects entries of keyType /valueType in a
Map that is itself bound with annotation . |
|
static
|
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Annotation annotation)
Returns a new mapbinder that collects entries of keyType /valueType in a
Map that is itself bound with annotation . |
|
static
|
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Class<? extends Annotation> annotationType)
Returns a new mapbinder that collects entries of keyType /valueType in a
Map that is itself bound with annotationType . |
|
static
|
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Class<? extends Annotation> annotationType)
Returns a new mapbinder that collects entries of keyType /valueType in a
Map that is itself bound with annotationType . |
|
static
|
Multibinder.newSetBinder(Binder binder,
TypeLiteral<T> type)
Returns a new multibinder that collects instances of type in a Set that is
itself bound with no binding annotation. |
|
static
|
Multibinder.newSetBinder(Binder binder,
TypeLiteral<T> type,
Annotation annotation)
Returns a new multibinder that collects instances of type in a Set that is
itself bound with annotation . |
|
static
|
Multibinder.newSetBinder(Binder binder,
TypeLiteral<T> type,
Class<? extends Annotation> annotationType)
Returns a new multibinder that collects instances of type in a Set that is
itself bound with annotationType . |
Uses of TypeLiteral in org.elasticsearch.common.inject.spi |
---|
Methods in org.elasticsearch.common.inject.spi that return TypeLiteral | |
---|---|
TypeLiteral<T> |
MembersInjectorLookup.getType()
Gets the type containing the members to be injected. |
TypeLiteral<T> |
InjectionRequest.getType()
|
Methods in org.elasticsearch.common.inject.spi that return types with arguments of type TypeLiteral | |
---|---|
Matcher<? super TypeLiteral<?>> |
TypeListenerBinding.getTypeMatcher()
Returns the type matcher which chooses which types the listener should be notified of. |
Matcher<? super TypeLiteral<?>> |
TypeConverterBinding.getTypeMatcher()
|
Methods in org.elasticsearch.common.inject.spi with parameters of type TypeLiteral | ||
---|---|---|
Object |
TypeConverter.convert(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 Set<InjectionPoint> |
InjectionPoint.forInstanceMethodsAndFields(TypeLiteral<?> type)
Returns all instance method and field injection points on type . |
|
static Set<InjectionPoint> |
InjectionPoint.forStaticMethodsAndFields(TypeLiteral type)
Returns all static method and field injection points on type . |
|
|
TypeEncounter.getMembersInjector(TypeLiteral<T> typeLiteral)
Returns the members injector used to inject dependencies into methods and fields on instances of the given type T . |
|
|
TypeListener.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 | |
---|---|
InjectionRequest(Object source,
TypeLiteral<T> type,
T instance)
|
|
MembersInjectorLookup(Object source,
TypeLiteral<T> type)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |