Uses of Class
org.elasticsearch.common.inject.Key
-
Packages that use Key Package Description org.elasticsearch.common.inject org.elasticsearch.common.inject.binder org.elasticsearch.common.inject.internal org.elasticsearch.common.inject.spi -
-
Uses of Key in org.elasticsearch.common.inject
Methods in org.elasticsearch.common.inject that return Key Modifier and Type Method Description static <T> Key<T>Key. get(Class<T> type)Gets a key for an injection type.static <T> Key<T>Key. get(Class<T> type, Annotation annotation)Gets a key for an injection type and an annotation.static <T> Key<T>Key. get(Class<T> type, Class<? extends Annotation> annotationType)Gets a key for an injection type and an annotation type.static Key<?>Key. get(Type type)Gets a key for an injection type.static Key<?>Key. get(Type type, Annotation annotation)Gets a key for an injection type and an annotation.static Key<?>Key. get(Type type, Class<? extends Annotation> annotationType)Gets a key for an injection type and an annotation 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, 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.Key<T>Binding. getKey()Returns the key for this binding.Methods in org.elasticsearch.common.inject with parameters of type Key Modifier and Type Method Description protected <T> LinkedBindingBuilder<T>AbstractModule. bind(Key<T> key)<T> LinkedBindingBuilder<T>Binder. bind(Key<T> key)See the EDSL examples atBinder.protected <T> LinkedBindingBuilder<T>PrivateModule. bind(Key<T> key)voidPrivateBinder. expose(Key<?> key)Makes the binding forkeyavailable to the enclosing environmentprotected <T> voidPrivateModule. expose(Key<T> key)Makes the binding forkeyavailable to other modules and the injector.<T> TInjector. getInstance(Key<T> key)Returns the appropriate instance for the given injection key; equivalent togetProvider(key).get().protected <T> Provider<T>AbstractModule. getProvider(Key<T> key)<T> Provider<T>Binder. getProvider(Key<T> key)Returns the provider used to obtain instances for the given injection key.<T> Provider<T>Injector. getProvider(Key<T> key)Returns the provider used to obtain instances for the given injection key.protected <T> Provider<T>PrivateModule. getProvider(Key<T> key)protected voidAbstractModule. requireBinding(Key<?> key)Adds a dependency from this module tokey.<T> Provider<T>Scope. scope(Key<T> key, Provider<T> unscoped)Scopes a provider. -
Uses of Key in org.elasticsearch.common.inject.binder
Methods in org.elasticsearch.common.inject.binder with parameters of type Key Modifier and Type Method Description ScopedBindingBuilderLinkedBindingBuilder. to(Key<? extends T> targetKey)See the EDSL examples atBinder.ScopedBindingBuilderLinkedBindingBuilder. toProvider(Key<? extends Provider<? extends T>> providerKey)See the EDSL examples atBinder. -
Uses of Key in org.elasticsearch.common.inject.internal
Fields in org.elasticsearch.common.inject.internal declared as Key Modifier and Type Field Description protected static Key<?>AbstractBindingBuilder. NULL_KEYMethods in org.elasticsearch.common.inject.internal that return Key Modifier and Type Method Description static Key<?>Annotations. getKey(TypeLiteral<?> type, Member member, Annotation[] annotations, Errors errors)Gets a key for the given type, member and annotations.Key<T>BindingImpl. getKey()Key<?>ExposureBuilder. getKey()Key<T>ProviderMethod. getKey()Key<? extends T>LinkedBindingImpl. getLinkedKey()Key<? extends Provider<? extends T>>LinkedProviderBindingImpl. getProviderKey()Methods in org.elasticsearch.common.inject.internal that return types with arguments of type Key Modifier and Type Method Description Set<Key<?>>PrivateElementsImpl. getExposedKeys()Methods in org.elasticsearch.common.inject.internal with parameters of type Key Modifier and Type Method Description ErrorsErrors. bindingAlreadySet(Key<?> key, Object source)ErrorsErrors. childBindingAlreadySet(Key<?> key)voidErrors. exposedButNotBound(Key<?> key)ObjectPrivateElementsImpl. getExposedSource(Key<?> key)ErrorsErrors. missingImplementation(Key key)We use a fairly generic error message here.BindingBuilder<T>BindingBuilder. to(Key<? extends T> linkedKey)BindingBuilder<T>BindingBuilder. toProvider(Key<? extends Provider<? extends T>> providerKey)protected BindingImpl<T>BindingImpl. withKey(Key<T> key)ExposedBindingImpl<T>ExposedBindingImpl. withKey(Key<T> key)BindingImpl<T>InstanceBindingImpl. withKey(Key<T> key)BindingImpl<T>LinkedBindingImpl. withKey(Key<T> key)BindingImpl<T>LinkedProviderBindingImpl. withKey(Key<T> key)BindingImpl<T>ProviderInstanceBindingImpl. withKey(Key<T> key)BindingImpl<T>UntargettedBindingImpl. withKey(Key<T> key)Constructors in org.elasticsearch.common.inject.internal with parameters of type Key Constructor Description AbstractBindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key)BindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key)BindingImpl(Object source, Key<T> key, Scoping scoping)BindingImpl(Injector injector, Key<T> key, Object source, InternalFactory<? extends T> internalFactory, Scoping scoping)ExposedBindingImpl(Object source, Key<T> key, Scoping scoping, PrivateElements privateElements)ExposedBindingImpl(Injector injector, Object source, Key<T> key, InternalFactory<T> factory, PrivateElements privateElements)ExposureBuilder(Binder binder, Object source, Key<T> key)InstanceBindingImpl(Object source, Key<T> key, Scoping scoping, Set<InjectionPoint> injectionPoints, T instance)InstanceBindingImpl(Injector injector, Key<T> key, Object source, InternalFactory<? extends T> internalFactory, Set<InjectionPoint> injectionPoints, T instance)LinkedBindingImpl(Object source, Key<T> key, Scoping scoping, Key<? extends T> targetKey)LinkedBindingImpl(Injector injector, Key<T> key, Object source, InternalFactory<? extends T> internalFactory, Scoping scoping, Key<? extends T> targetKey)LinkedProviderBindingImpl(Injector injector, Key<T> key, Object source, InternalFactory<? extends T> internalFactory, Scoping scoping, Key<? extends Provider<? extends T>> providerKey)ProviderInstanceBindingImpl(Object source, Key<T> key, Scoping scoping, Set<InjectionPoint> injectionPoints, Provider<? extends T> providerInstance)ProviderInstanceBindingImpl(Injector injector, Key<T> key, Object source, InternalFactory<? extends T> internalFactory, Scoping scoping, Provider<? extends T> providerInstance, Set<InjectionPoint> injectionPoints)UntargettedBindingImpl(Object source, Key<T> key, Scoping scoping)UntargettedBindingImpl(Injector injector, Key<T> key, Object source) -
Uses of Key in org.elasticsearch.common.inject.spi
Methods in org.elasticsearch.common.inject.spi that return Key Modifier and Type Method Description Key<T>Dependency. getKey()Returns the key to the binding that satisfies this dependency.Key<T>ProviderLookup. getKey()Key<T>ProviderLookup.ProviderImpl. getKey()Key<? extends T>LinkedKeyBinding. getLinkedKey()Returns the linked key used to resolve injections.Key<?>ProviderBinding. getProvidedKey()Returns the key whose binding is used toprovide instances.Key<? extends Provider<? extends T>>ProviderKeyBinding. getProviderKey()Returns the key used to resolve the provider's binding.Key<String>ConvertedConstantBinding. getSourceKey()Returns the key for the source binding.Methods in org.elasticsearch.common.inject.spi that return types with arguments of type Key Modifier and Type Method Description Set<Key<?>>PrivateElements. getExposedKeys()Returns the unique exposed keys for these private elements.Methods in org.elasticsearch.common.inject.spi with parameters of type Key Modifier and Type Method Description static <T> Dependency<T>Dependency. get(Key<T> key)Returns a new dependency that is not attached to an injection point.ObjectPrivateElements. getExposedSource(Key<?> key)Returns an arbitrary object containing information about the "place" where this key was exposed.<T> Provider<T>TypeEncounter. getProvider(Key<T> key)Returns the provider used to obtain instances for the given injection key.Constructors in org.elasticsearch.common.inject.spi with parameters of type Key Constructor Description ProviderLookup(Object source, Key<T> key)
-