org.nanocontainer.aop.defaults
Class KeyEqualsComponentPointcut
java.lang.Object
org.nanocontainer.aop.defaults.KeyEqualsComponentPointcut
- All Implemented Interfaces:
- ComponentPointcut
public class KeyEqualsComponentPointcut
- extends Object
- implements ComponentPointcut
Component pointcut that matches against a component key.
- Version:
- $Revision: 3144 $
- Author:
- Stephen Molitor
Method Summary |
boolean |
picks(Object componentKey)
Tests to see if the componentKey matches the component key
passed to the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyEqualsComponentPointcut
public KeyEqualsComponentPointcut(Object componentKey)
- Creates a new
KeyEqualsComponentPointcut
that matches
against componentKey
.
- Parameters:
componentKey
- the component key to match against.
picks
public boolean picks(Object componentKey)
- Tests to see if the
componentKey
matches the component key
passed to the constructor.
- Specified by:
picks
in interface ComponentPointcut
- Parameters:
componentKey
- the candidate component key to match against.
- Returns:
- true if
componentKey
is equivalent to the
component key passed to the constructor, else false.
Copyright © 2003-2009 Codehaus. All Rights Reserved.