public class IsType extends AbstractConstraint
Modifier and Type | Field and Description |
---|---|
private java.lang.Class |
type |
Constructor and Description |
---|
IsType(java.lang.Class c)
Creates a new
IsType instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(org.picocontainer.ComponentAdapter adapter)
Evaluate whether the given component adapter matches this constraint.
|
getMatchingComponentAdapters, isResolvable, resolveInstance, verify
public IsType(java.lang.Class c)
IsType
instance.c
- the Class
to matchpublic boolean evaluate(org.picocontainer.ComponentAdapter adapter)
Constraint
evaluate
in interface Constraint
evaluate
in class AbstractConstraint
adapter
- a ComponentAdapter
value