Package | Description |
---|---|
org.picocontainer.gems.constraints |
Modifier and Type | Class and Description |
---|---|
class |
AbstractConstraint
Base class for parameter constraints.
|
class |
And
Aggregates multiple constraints together using boolean AND logic.
|
class |
Anything
A constraint that matches any component adapter.
|
class |
CollectionConstraint
Constraint that collects/aggregates dependencies to as many components
that satisfy the given constraint.
|
class |
IsExactType
Constraint that only accepts an adapter whose implementation is the same
class instance as the type represented by this object.
|
class |
IsKey
Constraint that accepts an adapter of a specific key.
|
class |
IsKeyType
Constraint that accepts an adapter whose key type is either the
same type or a subtype of the type(s) represented by this object.
|
class |
IsType
Constraint that accepts an adapter whose implementation is either the
same type or a subtype of the type(s) represented by this object.
|
class |
Not
Inverts the logical sense of the given constraint.
|
class |
Or
Aggregates multiple constraints together using boolean OR logic.
|
Modifier and Type | Field and Description |
---|---|
private Constraint[] |
And.children |
private Constraint[] |
Or.children |
protected Constraint |
CollectionConstraint.constraint |
private Constraint |
Not.constraint |
Constructor and Description |
---|
And(Constraint[] cc) |
And(Constraint c1,
Constraint c2) |
And(Constraint c1,
Constraint c2,
Constraint c3) |
CollectionConstraint(Constraint constraint) |
CollectionConstraint(Constraint constraint,
boolean emptyCollection) |
Not(Constraint con)
Creates a new
Not instance. |
Or(Constraint[] cc) |
Or(Constraint c1,
Constraint c2) |
Or(Constraint c1,
Constraint c2,
Constraint c3) |