public abstract class InjectionPlan<T> extends Object implements Traversable<InjectionPlan<?>>
Constructor and Description |
---|
InjectionPlan(Node node) |
Modifier and Type | Method and Description |
---|---|
Collection<InjectionPlan<?>> |
getChildren()
Get child elements of the injection plan tree.
|
Node |
getNode() |
abstract int |
getNumAlternatives() |
abstract boolean |
isAmbiguous() |
boolean |
isFeasible() |
abstract boolean |
isInjectable() |
String |
toCantInjectString()
Algorithm for generating cant inject string:
For infeasible plans:
Some node types are "leaves":
NamedParameterNode
ClassNode with no @Inject constructors
We do a depth first search of the injection plan, starting with the left
most constructor arguments.
|
String |
toPrettyString() |
abstract String |
toShallowString() |
public InjectionPlan(Node node)
public Collection<InjectionPlan<?>> getChildren()
getChildren
in interface Traversable<InjectionPlan<?>>
public abstract int getNumAlternatives()
public boolean isFeasible()
public abstract boolean isAmbiguous()
public abstract boolean isInjectable()
public String toPrettyString()
public final String toCantInjectString()
public abstract String toShallowString()
Copyright © 2015 The Apache Software Foundation. All rights reserved.