org.nanocontainer.aop.defaults
Class KeyEqualsComponentPointcut

java.lang.Object
  extended by org.nanocontainer.aop.defaults.KeyEqualsComponentPointcut
All Implemented Interfaces:
ComponentPointcut

public class KeyEqualsComponentPointcut
extends java.lang.Object
implements ComponentPointcut

Component pointcut that matches against a component key.

Version:
$Revision: 3144 $
Author:
Stephen Molitor

Constructor Summary
KeyEqualsComponentPointcut(java.lang.Object componentKey)
          Creates a new KeyEqualsComponentPointcut that matches against componentKey.
 
Method Summary
 boolean picks(java.lang.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
 

Constructor Detail

KeyEqualsComponentPointcut

public KeyEqualsComponentPointcut(java.lang.Object componentKey)
Creates a new KeyEqualsComponentPointcut that matches against componentKey.

Parameters:
componentKey - the component key to match against.
Method Detail

picks

public boolean picks(java.lang.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-2010 Codehaus. All Rights Reserved.