K
- The type for node IDs.public interface ImplementationNode<K>
Dependency
s and are
bound to InterfaceNode
s. These nodes will often have fields for
Member
s that are InjectionPoint
s.DependencyEdge
Modifier and Type | Interface and Description |
---|---|
static interface |
ImplementationNode.Factory<K,T extends ImplementationNode<K>>
Factory interface for
ImplementationNode s. |
Modifier and Type | Method and Description |
---|---|
void |
addMember(Member member) |
void |
setClassKey(Key<?> key)
Sets the
Key that this node is for. |
void |
setInstance(Object instance)
Sets the
Object that's the already-created instance. |
void |
setSource(Object source) |
void setClassKey(Key<?> key)
Key
that this node is for. Used when the node is
representing a class that Guice will instantiate.void setInstance(Object instance)
Object
that's the already-created instance. Used when
this node is represeting the instance instead of a class.void setSource(Object source)
void addMember(Member member)
Copyright © 2006-2012 Google, Inc.. All Rights Reserved.