public class CollectionConstraint extends org.picocontainer.defaults.CollectionComponentParameter implements Constraint
Modifier and Type | Field and Description |
---|---|
protected Constraint |
constraint |
Constructor and Description |
---|
CollectionConstraint(Constraint constraint) |
CollectionConstraint(Constraint constraint,
boolean emptyCollection) |
Modifier and Type | Method and Description |
---|---|
void |
accept(org.picocontainer.PicoVisitor visitor) |
boolean |
evaluate(org.picocontainer.ComponentAdapter adapter)
Evaluate whether the given component adapter matches this constraint.
|
getMatchingComponentAdapters, isResolvable, resolveInstance, verify
protected Constraint constraint
public CollectionConstraint(Constraint constraint)
public CollectionConstraint(Constraint constraint, boolean emptyCollection)
public boolean evaluate(org.picocontainer.ComponentAdapter adapter)
Constraint
evaluate
in interface Constraint
evaluate
in class org.picocontainer.defaults.CollectionComponentParameter
adapter
- a ComponentAdapter
valuepublic void accept(org.picocontainer.PicoVisitor visitor)
accept
in interface org.picocontainer.Parameter
accept
in class org.picocontainer.defaults.CollectionComponentParameter