Package | Description |
---|---|
org.apache.reef.tang |
Public interfaces and factories for Tang's core API.
|
org.apache.reef.tang.implementation |
Tang's implementation.
|
org.apache.reef.tang.implementation.java |
Private implementation classes that configure and inject code written
in Java.
|
org.apache.reef.tang.implementation.protobuf |
Implementation classes that translate between Tang's core API and protocol
buffers.
|
org.apache.reef.tang.implementation.types |
Implementations of the ClassHierarchy type system.
|
org.apache.reef.tang.types |
The interfaces that define Tang's ClassHierarchy objects.
|
org.apache.reef.tang.util |
Utilities for Tang.
|
org.apache.reef.tang.util.walk |
Utility classes for configuration graph and injection plan traversal.
|
org.apache.reef.tang.util.walk.graphviz |
produce Graphviz representation of TANG configuration graph and injection plan.
|
Modifier and Type | Method and Description |
---|---|
Node |
ClassHierarchy.getNamespace()
Return a reference to the root of the ClassHierarchy.
|
Node |
JavaClassHierarchy.getNode(Class<?> c)
Look up a class object in this ClassHierarchy.
|
Node |
ClassHierarchy.getNode(String fullName)
Lookup a node in this class hierarchy.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationBuilder.bind(Node iface,
Node impl)
Bind classes to each other, based on their full class names; alternatively,
bound a NamedParameter configuration option to a configuration value.
|
<T> void |
ConfigurationBuilder.bindSetEntry(NamedParameterNode<Set<T>> iface,
Node impl) |
void |
ConfigurationBuilder.bindSetEntry(String iface,
Node impl) |
Modifier and Type | Method and Description |
---|---|
Node |
InjectionPlan.getNode() |
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationBuilderImpl.bind(Node key,
Node value) |
<T> void |
ConfigurationBuilderImpl.bindSetEntry(NamedParameterNode<Set<T>> iface,
Node impl) |
void |
ConfigurationBuilderImpl.bindSetEntry(String iface,
Node impl) |
Constructor and Description |
---|
InjectionFuturePlan(Node name) |
InjectionPlan(Node node) |
ListInjectionPlan(Node name,
List<InjectionPlan<T>> entries) |
SetInjectionPlan(Node name,
Set<InjectionPlan<T>> entries) |
Subplan(Node node,
InjectionPlan<T>... alternatives) |
Subplan(Node node,
int selectedIndex,
InjectionPlan<T>... alternatives) |
Modifier and Type | Method and Description |
---|---|
Node |
ClassHierarchyImpl.getNode(Class<?> clazz) |
Node |
ClassHierarchyImpl.getNode(String name) |
Modifier and Type | Method and Description |
---|---|
static <T> NamedParameterNode<T> |
JavaNodeFactory.createNamedParameterNode(Node parent,
Class<? extends Name<T>> clazz,
Type argClass)
XXX: This method assumes that all generic types have exactly one type parameter.
|
InjectionPlan<?> |
InjectorImpl.getInjectionPlan(Node n)
Return an injection plan for the given class / parameter name.
|
Constructor and Description |
---|
JavaInstance(Node name,
T instance) |
Modifier and Type | Method and Description |
---|---|
Node |
ProtocolBufferClassHierarchy.getNamespace()
Deprecated.
|
Node |
ProtocolBufferClassHierarchy.getNode(String fullName)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractNode |
class |
ClassNodeImpl<T> |
class |
NamedParameterNodeImpl<T> |
class |
PackageNodeImpl |
Modifier and Type | Method and Description |
---|---|
Node |
AbstractNode.get(String key) |
Node |
AbstractNode.getParent() |
Modifier and Type | Method and Description |
---|---|
Collection<Node> |
AbstractNode.getChildren() |
Modifier and Type | Method and Description |
---|---|
int |
AbstractNode.compareTo(Node n) |
void |
PackageNodeImpl.put(Node n)
Unlike normal nodes, the root node needs to take the package name of its
children into account.
|
void |
AbstractNode.put(Node n) |
Constructor and Description |
---|
AbstractNode(Node parent,
String name,
String fullName) |
ClassNodeImpl(Node parent,
String simpleName,
String fullName,
boolean unit,
boolean injectable,
boolean externalConstructor,
ConstructorDef<T>[] injectableConstructors,
ConstructorDef<T>[] allConstructors,
String defaultImplementation) |
NamedParameterNodeImpl(Node parent,
String simpleName,
String fullName,
String fullArgName,
String simpleArgName,
boolean isSet,
boolean isList,
String documentation,
String shortName,
String[] defaultInstanceAsStrings) |
PackageNodeImpl(Node parent,
String name,
String fullName) |
Modifier and Type | Interface and Description |
---|---|
interface |
ClassNode<T> |
interface |
NamedParameterNode<T> |
interface |
PackageNode |
Modifier and Type | Method and Description |
---|---|
Node |
Node.get(String key) |
Node |
Node.getParent() |
Modifier and Type | Method and Description |
---|---|
Collection<Node> |
Node.getChildren() |
Modifier and Type | Method and Description |
---|---|
void |
Node.put(Node node) |
Modifier and Type | Method and Description |
---|---|
Set<Node> |
Tint.getNamesUsedAndSet() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
Tint.getSettersOf(Node name) |
Set<String> |
Tint.getUsesOf(Node name) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractClassHierarchyNodeVisitor.visit(Node node)
Manually dispatch between different types of Nodes and call a proper visit() method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GraphvizConfigVisitor.visit(Node nodeFrom,
Node nodeTo)
Process current edge of the configuration graph.
|
Copyright © 2017 The Apache Software Foundation. All rights reserved.