jodd.proxetta.pointcuts
Class ProxyPointcutSupport

java.lang.Object
  extended by jodd.proxetta.pointcuts.ProxyPointcutSupport
All Implemented Interfaces:
ProxyPointcut
Direct Known Subclasses:
AllGettersPointcut, AllMethodsPointcut, AllSettersPointcut, MethodAnnotationPointcut

public abstract class ProxyPointcutSupport
extends java.lang.Object
implements ProxyPointcut

ProxyPointcut support methods.


Constructor Summary
ProxyPointcutSupport()
           
 
Method Summary
 boolean and(MethodSignature msign, ProxyPointcut p1, ProxyPointcut p2)
          Returns true if both pointcuts can be applied on the method..
 boolean hasAnnotation(MethodSignature msign, java.lang.String annotationName)
          Returns true if method is annotated with provided annotation.
 boolean hasNoArguments(MethodSignature msign)
          Returns true if method has no arguments.
 boolean hasNoReturnValue(MethodSignature msign)
          Returns true if method's return type is void.
 boolean hasOneArgument(MethodSignature msign)
          Returns true if method has only one argument.
 boolean hasReturnValue(MethodSignature msign)
          Returns true if method has a return type.
 boolean isPublic(MethodSignature msign)
          Returns true if method is public.
 boolean matchClassName(MethodSignature msing, java.lang.String wildcard)
          Match class name to provided Wildcard pattern.
 boolean matchMethodName(MethodSignature msing, java.lang.String wildcard)
          Match method name to provided Wildcard pattern.
 boolean or(MethodSignature msign, ProxyPointcut p1, ProxyPointcut p2)
          Returns true if at least one pointcuts can be applied on the method..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jodd.proxetta.ProxyPointcut
apply
 

Constructor Detail

ProxyPointcutSupport

public ProxyPointcutSupport()
Method Detail

isPublic

public boolean isPublic(MethodSignature msign)
Returns true if method is public.


hasAnnotation

public boolean hasAnnotation(MethodSignature msign,
                             java.lang.String annotationName)
Returns true if method is annotated with provided annotation.


hasNoArguments

public boolean hasNoArguments(MethodSignature msign)
Returns true if method has no arguments.


hasOneArgument

public boolean hasOneArgument(MethodSignature msign)
Returns true if method has only one argument.


matchMethodName

public boolean matchMethodName(MethodSignature msing,
                               java.lang.String wildcard)
Match method name to provided Wildcard pattern.


matchClassName

public boolean matchClassName(MethodSignature msing,
                              java.lang.String wildcard)
Match class name to provided Wildcard pattern.


hasNoReturnValue

public boolean hasNoReturnValue(MethodSignature msign)
Returns true if method's return type is void.


hasReturnValue

public boolean hasReturnValue(MethodSignature msign)
Returns true if method has a return type.


and

public boolean and(MethodSignature msign,
                   ProxyPointcut p1,
                   ProxyPointcut p2)
Returns true if both pointcuts can be applied on the method..


or

public boolean or(MethodSignature msign,
                  ProxyPointcut p1,
                  ProxyPointcut p2)
Returns true if at least one pointcuts can be applied on the method..



Copyright ©2008 Jodd Team