org.picocontainer.gems.constraints
Interface Constraint

All Superinterfaces:
org.picocontainer.Parameter
All Known Implementing Classes:
AbstractConstraint, And, Anything, CollectionConstraint, IsExactType, IsKey, IsKeyType, IsType, Not, Or

public interface Constraint
extends org.picocontainer.Parameter

Extension to Parameter that allows for constraint-based configuration of component parameters.

Version:
1.0
Author:
Nick Sieger

Method Summary
 boolean evaluate(org.picocontainer.ComponentAdapter adapter)
          Evaluate whether the given component adapter matches this constraint.
 
Methods inherited from interface org.picocontainer.Parameter
accept, isResolvable, resolveInstance, verify
 

Method Detail

evaluate

boolean evaluate(org.picocontainer.ComponentAdapter adapter)
Evaluate whether the given component adapter matches this constraint.

Parameters:
adapter - a ComponentAdapter value
Returns:
true if the adapter matches the constraint