org.picocontainer.gems.constraints
Interface Constraint

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

public interface Constraint
extends Parameter

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

Author:
Nick Sieger

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.picocontainer.Parameter
Parameter.DelegateResolver, Parameter.NotResolved, Parameter.Resolver, Parameter.ValueResolver
 
Field Summary
 
Fields inherited from interface org.picocontainer.Parameter
DEFAULT, ZERO
 
Method Summary
 boolean evaluate(ComponentAdapter adapter)
          Evaluate whether the given component adapter matches this constraint.
 
Methods inherited from interface org.picocontainer.Parameter
accept, isResolvable, resolve, resolveInstance, verify
 

Method Detail

evaluate

boolean evaluate(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-2010 Codehaus. All Rights Reserved.