|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockejb.interceptor.ClassPointcut
public class ClassPointcut
Tests if the given class matches the class provided to the constructor of ClassPointcut.
| Constructor Summary | |
|---|---|
ClassPointcut(java.lang.Class clazz)
Creates a new instance of ClassPoincut It will not match subclasses. |
|
ClassPointcut(java.lang.Class clazz,
boolean matchSubclasses)
Creates a new instance of ClassPoincut |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the given object is of type ClassPointcut and it handles the same class and handlesSubclasses flag is set to the same value |
int |
hashCode()
|
boolean |
matchesJointpoint(java.lang.reflect.Method method)
Tests if the class of the provided method is the same with the the class provided to the constructor of this pointcut. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPointcut(java.lang.Class clazz)
clazz - class to match
public ClassPointcut(java.lang.Class clazz,
boolean matchSubclasses)
clazz - class to matchmatchSubclasses - if true, the pointcut will also match all subclasses/
subinterfaces of the provided class.| Method Detail |
|---|
public boolean matchesJointpoint(java.lang.reflect.Method method)
matchesJointpoint in interface Pointcutmethod - method being invoked
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||