Uses of Class
com.google.inject.Key

Packages that use Key
com.google.inject Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework. 
com.google.inject.assistedinject Extension for combining factory interfaces with injection; this extension requires guice-assistedinject-3.0.jar
com.google.inject.binder Interfaces which make up Binder's expression language. 
com.google.inject.grapher   
com.google.inject.grapher.graphviz   
com.google.inject.internal Guice (sounds like like "juice") 
com.google.inject.multibindings Extension for binding multiple instances in a collection; this extension requires guice-multibindings-3.0.jar
com.google.inject.servlet Servlet API scopes, bindings and registration; this extension requires guice-servlet-3.0.jar
com.google.inject.spi Guice service provider interface 
com.google.inject.throwingproviders Extension for injecting objects that may throw at provision time; this extension requires guice-throwingproviders-3.0.jar
 

Uses of Key in com.google.inject
 

Methods in com.google.inject that return Key
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.
<T> Key<T>
Key.ofType(Class<T> type)
          Returns a new key of the specified type with the same annotation as this key.
 Key<?> Key.ofType(Type type)
          Returns a new key of the specified type with the same annotation as this key.
<T> Key<T>
Key.ofType(TypeLiteral<T> type)
          Returns a new key of the specified type with the same annotation as this key.
 Key<T> Key.withoutAttributes()
          Returns this key without annotation attributes, i.e.
 

Methods in com.google.inject that return types with arguments of type Key
 Map<Key<?>,Binding<?>> Injector.getAllBindings()
          Returns a snapshot of this injector's bindings, both explicit and just-in-time.
 Map<Key<?>,Binding<?>> Injector.getBindings()
          Returns this injector's explicit bindings.
 

Methods in com.google.inject with parameters of type Key
<T> LinkedBindingBuilder<T>
Binder.bind(Key<T> key)
          See the EDSL examples at Binder.
protected
<T> LinkedBindingBuilder<T>
AbstractModule.bind(Key<T> key)
           
protected
<T> LinkedBindingBuilder<T>
PrivateModule.bind(Key<T> key)
           
 void PrivateBinder.expose(Key<?> key)
          Makes the binding for key available to the enclosing environment
protected
<T> void
PrivateModule.expose(Key<T> key)
          Makes the binding for key available to other modules and the injector.
<T> Binding<T>
Injector.getBinding(Key<T> key)
          Returns the binding for the given injection key.
<T> Binding<T>
Injector.getExistingBinding(Key<T> key)
          Returns the binding if it already exists, or null if does not exist.
<T> T
Injector.getInstance(Key<T> key)
          Returns the appropriate instance for the given injection key; equivalent to getProvider(key).get().
<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>
AbstractModule.getProvider(Key<T> key)
           
protected
<T> Provider<T>
PrivateModule.getProvider(Key<T> key)
           
protected  void AbstractModule.requireBinding(Key<?> key)
          Adds a dependency from this module to key.
protected  void PrivateModule.requireBinding(Key<?> key)
          Instructs Guice to require a binding to the given key.
<T> Provider<T>
Scope.scope(Key<T> key, Provider<T> unscoped)
          Scopes a provider.
 

Uses of Key in com.google.inject.assistedinject
 

Methods in com.google.inject.assistedinject that return Key
 Key<T> AssistedInjectBinding.getKey()
          Returns the Key for the factory binding.
 

Methods in com.google.inject.assistedinject with parameters of type Key
<F> Module
FactoryModuleBuilder.build(Key<F> factoryInterface)
           
<T> FactoryModuleBuilder
FactoryModuleBuilder.implement(Key<T> source, Class<? extends T> target)
          See the factory configuration examples at FactoryModuleBuilder.
<T> FactoryModuleBuilder
FactoryModuleBuilder.implement(Key<T> source, TypeLiteral<? extends T> target)
          See the factory configuration examples at FactoryModuleBuilder.
 

Uses of Key in com.google.inject.binder
 

Methods in com.google.inject.binder with parameters of type Key
 ScopedBindingBuilder LinkedBindingBuilder.to(Key<? extends T> targetKey)
          See the EDSL examples at Binder.
 ScopedBindingBuilder LinkedBindingBuilder.toProvider(Key<? extends javax.inject.Provider<? extends T>> providerKey)
          See the EDSL examples at Binder.
 

Uses of Key in com.google.inject.grapher
 

Methods in com.google.inject.grapher that return types with arguments of type Key
 Collection<Key<?>> TransitiveDependencyVisitor.visit(ConstructorBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(ConvertedConstantBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(ExposedBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(InstanceBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(LinkedKeyBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(ProviderBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(ProviderInstanceBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(ProviderKeyBinding<?> binding)
           
 Collection<Key<?>> TransitiveDependencyVisitor.visit(UntargettedBinding<?> binding)
           
 

Methods in com.google.inject.grapher with parameters of type Key
 String NameFactory.getAnnotationName(Key<?> key)
           
 String ShortNameFactory.getAnnotationName(Key<?> key)
           
 String NameFactory.getClassName(Key<?> key)
           
 String ShortNameFactory.getClassName(Key<?> key)
           
 String StringNodeIdFactory.getClassNodeId(Key<?> key)
           
 K NodeIdFactory.getClassNodeId(Key<?> key)
           
 String StringNodeIdFactory.getInstanceNodeId(Key<?> key)
           
 K NodeIdFactory.getInstanceNodeId(Key<?> key)
           
 void ImplementationNode.setClassKey(Key<?> key)
          Sets the Key that this node is for.
 void InterfaceNode.setKey(Key<?> key)
           
 

Constructor parameters in com.google.inject.grapher with type arguments of type Key
InjectorGrapher(BindingTargetVisitor<Object,Collection<Key<?>>> keyVisitor, BindingTargetVisitor<Object,Void> graphingVisitor, Renderer renderer)
           
 

Uses of Key in com.google.inject.grapher.graphviz
 

Methods in com.google.inject.grapher.graphviz with parameters of type Key
 void ImplementationNodeFactory.GraphvizNodeAdaptor.setClassKey(Key<?> key)
           
 void InterfaceNodeFactory.GraphvizNodeAdaptor.setKey(Key<?> key)
           
 

Uses of Key in com.google.inject.internal
 

Fields in com.google.inject.internal declared as Key
protected static Key<?> AbstractBindingBuilder.NULL_KEY
           
 

Methods in com.google.inject.internal that return Key
 Key<T> BindingImpl.getKey()
           
 Key<?> ExposureBuilder.getKey()
           
 Key<T> ProviderMethod.getKey()
           
static Key<?> Annotations.getKey(TypeLiteral<?> type, Member member, Annotation[] annotations, Errors errors)
          Gets a key for the given type, member and annotations.
 Key<? extends T> LinkedBindingImpl.getLinkedKey()
           
 

Methods in com.google.inject.internal that return types with arguments of type Key
 Set<Key<?>> PrivateElementsImpl.getExposedKeys()
           
 

Methods in com.google.inject.internal with parameters of type Key
 Errors Errors.bindingAlreadySet(Key<?> key, Object source)
           
 Errors Errors.childBindingAlreadySet(Key<?> key)
           
 Errors Errors.errorCheckingDuplicateBinding(Key<?> key, Object source, Throwable t)
           
 Errors Errors.exposedButNotBound(Key<?> key)
           
 Object PrivateElementsImpl.getExposedSource(Key<?> key)
           
 Errors Errors.jitDisabled(Key key)
           
 Errors Errors.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 javax.inject.Provider<? extends T>> providerKey)
           
protected  BindingImpl<T> BindingImpl.withKey(Key<T> key)
           
 BindingImpl<T> LinkedBindingImpl.withKey(Key<T> key)
           
 

Constructors in com.google.inject.internal with parameters of type Key
AbstractBindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key)
           
BindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key)
           
BindingImpl(com.google.inject.internal.InjectorImpl injector, Key<T> key, Object source, com.google.inject.internal.InternalFactory<? extends T> internalFactory, Scoping scoping)
           
BindingImpl(Object source, Key<T> key, Scoping scoping)
           
ExposedBindingImpl(com.google.inject.internal.InjectorImpl injector, Object source, Key<T> key, com.google.inject.internal.InternalFactory<T> factory, PrivateElements privateElements)
           
ExposureBuilder(Binder binder, Object source, Key<T> key)
           
LinkedBindingImpl(com.google.inject.internal.InjectorImpl injector, Key<T> key, Object source, com.google.inject.internal.InternalFactory<? extends T> internalFactory, Scoping scoping, Key<? extends T> targetKey)
           
LinkedBindingImpl(com.google.inject.internal.InjectorImpl injector, Key<T> key, Object source, com.google.inject.internal.InternalFactory<? extends T> internalFactory, Scoping scoping, Key<? extends T> targetKey)
           
LinkedBindingImpl(Object source, Key<T> key, Scoping scoping, Key<? extends T> targetKey)
           
LinkedBindingImpl(Object source, Key<T> key, Scoping scoping, Key<? extends T> targetKey)
           
 

Uses of Key in com.google.inject.multibindings
 

Methods in com.google.inject.multibindings that return Key
 Key<T> MapBinderBinding.getMapKey()
          Returns the Key for the map.
 Key<T> MultibinderBinding.getSetKey()
          Returns the key for the set.
 

Uses of Key in com.google.inject.servlet
 

Methods in com.google.inject.servlet that return Key
 Key<? extends javax.servlet.http.HttpServlet> LinkedServletBinding.getLinkedKey()
          Returns the key used to lookup the servlet instance.
 Key<? extends javax.servlet.Filter> LinkedFilterBinding.getLinkedKey()
          Returns the key used to lookup the filter instance.
 

Methods in com.google.inject.servlet with parameters of type Key
 void ServletModule.FilterKeyBindingBuilder.through(Key<? extends javax.servlet.Filter> filterKey)
           
 void ServletModule.FilterKeyBindingBuilder.through(Key<? extends javax.servlet.Filter> filterKey, Map<String,String> initParams)
           
 void ServletModule.ServletKeyBindingBuilder.with(Key<? extends javax.servlet.http.HttpServlet> servletKey)
           
 void ServletModule.ServletKeyBindingBuilder.with(Key<? extends javax.servlet.http.HttpServlet> servletKey, Map<String,String> initParams)
           
 

Method parameters in com.google.inject.servlet with type arguments of type Key
static
<T> Callable<T>
ServletScopes.continueRequest(Callable<T> callable, Map<Key<?>,Object> seedMap)
          Wraps the given callable in a contextual callable that "continues" the HTTP request in another thread.
static
<T> Callable<T>
ServletScopes.scopeRequest(Callable<T> callable, Map<Key<?>,Object> seedMap)
          Scopes the given callable inside a request scope.
 

Uses of Key in com.google.inject.spi
 

Methods in com.google.inject.spi that return Key
 Key<T> Dependency.getKey()
          Returns the key to the binding that satisfies this dependency.
 Key<T> ProviderLookup.getKey()
           
 Key<? extends T> LinkedKeyBinding.getLinkedKey()
          Returns the linked key used to resolve injections.
 Key<?> ProviderBinding.getProvidedKey()
          Returns the key whose binding is used to provide instances.
 Key<? extends javax.inject.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 com.google.inject.spi that return types with arguments of type Key
 Set<Key<?>> PrivateElements.getExposedKeys()
          Returns the unique exposed keys for these private elements.
 

Methods in com.google.inject.spi with parameters of type Key
static
<T> Dependency<T>
Dependency.get(Key<T> key)
          Returns a new dependency that is not attached to an injection point.
 Object PrivateElements.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 com.google.inject.spi with parameters of type Key
ProviderLookup(Object source, Key<T> key)
           
 

Uses of Key in com.google.inject.throwingproviders
 

Methods in com.google.inject.throwingproviders with parameters of type Key
 ScopedBindingBuilder ThrowingProviderBinder.SecondaryBinder.to(Key<? extends P> targetKey)
           
 



Copyright © 2006-2011 Google, Inc.. All Rights Reserved.