Class Node
java.lang.Object
com.yahoo.container.di.componentgraph.core.Node
- Direct Known Subclasses:
ComponentNode
,ComponentRegistryNode
,GuiceNode
- Author:
- Tony Vaagenes, gjoranv, ollivir
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the component represented by this - which is either the instance, or if the instance is a provider, the component returned by it.com.yahoo.component.ComponentId
abstract Class<?>
abstract Set<com.yahoo.vespa.config.ConfigKey<com.yahoo.config.ConfigInstance>>
Optional<?>
Returns the already constructed instance in this, if anyvoid
Constructs the instance represented by this node, if not already done.static boolean
equalEdges
(List<?> edges1, List<?> edges2) boolean
int
hashCode()
void
void
injectAll
(Collection<ComponentNode> componentNodes) abstract com.google.inject.Key<?>
abstract Class<?>
abstract String
label()
protected abstract Object
static String
packageName
(Class<?> componentClass) protected static com.yahoo.component.ComponentId
syntheticComponentId
(String className, Object identityObject, com.yahoo.component.ComponentId namespace) toString()
The components actually used by this node.
-
Field Details
-
instance
-
-
Constructor Details
-
Node
public Node(com.yahoo.component.ComponentId componentId)
-
-
Method Details
-
instanceKey
public abstract com.google.inject.Key<?> instanceKey() -
usedComponents
The components actually used by this node. Consist of a subset of the injected nodes + subset of the global nodes. -
newInstance
-
constructInstance
public void constructInstance()Constructs the instance represented by this node, if not already done. -
component
Returns the component represented by this - which is either the instance, or if the instance is a provider, the component returned by it. -
configKeys
-
inject
-
injectAll
-
instanceType
-
componentType
-
label
-
idAndType
-
equalEdges
-
toString
-
hashCode
public int hashCode() -
equals
-
componentId
public com.yahoo.component.ComponentId componentId() -
constructedInstance
Returns the already constructed instance in this, if any -
syntheticComponentId
protected static com.yahoo.component.ComponentId syntheticComponentId(String className, Object identityObject, com.yahoo.component.ComponentId namespace) - Parameters:
identityObject
- he identifying object that makes the Node unique
-
packageName
-