|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nanocontainer.aop.defaults.NameMatchesComponentPointcut
public class NameMatchesComponentPointcut
Component pointcut that matches the component name against a regular expression.
Constructor Summary | |
---|---|
NameMatchesComponentPointcut(java.lang.String regex)
Creates a new NameMatchesComponentPointcut that will match
the component key against the given regular expression. |
Method Summary | |
---|---|
boolean |
picks(java.lang.Object componentKey)
Tests to see if the component key's toString() value matches the regular expression passed to the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameMatchesComponentPointcut(java.lang.String regex) throws MalformedRegularExpressionException
NameMatchesComponentPointcut
that will match
the component key against the given regular expression. The regular
expression must be an ORO Perl5 regular
expression.
regex
- the regular expression to match against the component name.
MalformedRegularExpressionException
- if the regular expression is
invalid.Method Detail |
---|
public boolean picks(java.lang.Object componentKey)
picks
in interface ComponentPointcut
componentKey
- the component key to match against.
componentKey
, else false.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |