Class GuiceNode
- java.lang.Object
-
- com.yahoo.container.di.componentgraph.core.Node
-
- com.yahoo.container.di.componentgraph.core.GuiceNode
-
public final class GuiceNode extends Node
- Author:
- Tony Vaagenes, gjoranv, ollivir
-
-
Constructor Summary
Constructors Constructor Description GuiceNode(Object myInstance, Annotation annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
componentType()
Set<com.yahoo.vespa.config.ConfigKey<com.yahoo.config.ConfigInstance>>
configKeys()
void
inject(Node component)
com.google.inject.Key<?>
instanceKey()
Class<?>
instanceType()
String
label()
protected Object
newInstance()
List<Node>
usedComponents()
The components actually used by this node.-
Methods inherited from class com.yahoo.container.di.componentgraph.core.Node
component, componentId, constructedInstance, constructInstance, equalEdges, equals, hashCode, idAndType, injectAll, packageName, syntheticComponentId, toString
-
-
-
-
Constructor Detail
-
GuiceNode
public GuiceNode(Object myInstance, Annotation annotation)
-
-
Method Detail
-
configKeys
public Set<com.yahoo.vespa.config.ConfigKey<com.yahoo.config.ConfigInstance>> configKeys()
- Specified by:
configKeys
in classNode
-
instanceKey
public com.google.inject.Key<?> instanceKey()
- Specified by:
instanceKey
in classNode
-
instanceType
public Class<?> instanceType()
- Specified by:
instanceType
in classNode
-
componentType
public Class<?> componentType()
- Specified by:
componentType
in classNode
-
usedComponents
public List<Node> usedComponents()
Description copied from class:Node
The components actually used by this node. Consist of a subset of the injected nodes + subset of the global nodes.- Specified by:
usedComponents
in classNode
-
newInstance
protected Object newInstance()
- Specified by:
newInstance
in classNode
-
-