org.picocontainer.gems.constraints
Interface Constraint

All Superinterfaces:
org.picocontainer.Parameter
All Known Implementing Classes:
AbstractConstraint, CollectionConstraint

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

public 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


Copyright © 2003-2007 Codehaus. All Rights Reserved.