public abstract class AbstractConstraint extends CollectionComponentParameter implements Constraint
Parameter.DelegateResolver, Parameter.NotResolved, Parameter.Resolver, Parameter.ValueResolverARRAY, ARRAY_ALLOW_EMPTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConstraint()
Construct an AbstractContraint.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
evaluate(ComponentAdapter adapter)
Evaluate whether the given component adapter matches this constraint.
|
protected Map<Object,ComponentAdapter<?>> |
getMatchingComponentAdapters(PicoContainer container,
ComponentAdapter adapter,
Class keyType,
Class valueType) |
static String[] |
makeFoundAmbiguousStrings(Collection<ComponentAdapter<?>> found) |
Parameter.Resolver |
resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
void |
verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
acceptisResolvable, resolveInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, isResolvable, resolveInstanceprotected AbstractConstraint()
public Parameter.Resolver resolve(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) throws PicoCompositionException
resolve in interface Parameterresolve in class CollectionComponentParameterPicoCompositionExceptionpublic void verify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) throws PicoCompositionException
verify in interface Parameterverify in class CollectionComponentParameterPicoCompositionExceptionpublic abstract boolean evaluate(ComponentAdapter adapter)
Constraintevaluate in interface Constraintevaluate in class CollectionComponentParameteradapter - a ComponentAdapter valueprotected Map<Object,ComponentAdapter<?>> getMatchingComponentAdapters(PicoContainer container, ComponentAdapter adapter, Class keyType, Class valueType)
getMatchingComponentAdapters in class CollectionComponentParameterpublic static String[] makeFoundAmbiguousStrings(Collection<ComponentAdapter<?>> found)
Copyright © 2003-2014 Codehaus. All Rights Reserved.