org.springframework.aop
Class TruePointcut

java.lang.Object
  extended by org.springframework.aop.TruePointcut
All Implemented Interfaces:
java.io.Serializable, Pointcut

 class TruePointcut
extends java.lang.Object
implements Pointcut, java.io.Serializable

Canonical Pointcut instance that always matches.

Author:
Rod Johnson

Field Summary
static TruePointcut INSTANCE
           
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Constructor Summary
private TruePointcut()
          Enforce Singleton pattern.
 
Method Summary
 ClassFilter getClassFilter()
          Return the ClassFilter for this pointcut.
 MethodMatcher getMethodMatcher()
          Return the MethodMatcher for this pointcut.
private  java.lang.Object readResolve()
          Required to support serialization.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final TruePointcut INSTANCE
Constructor Detail

TruePointcut

private TruePointcut()
Enforce Singleton pattern.

Method Detail

getClassFilter

public ClassFilter getClassFilter()
Description copied from interface: Pointcut
Return the ClassFilter for this pointcut.

Specified by:
getClassFilter in interface Pointcut
Returns:
the ClassFilter (never null)

getMethodMatcher

public MethodMatcher getMethodMatcher()
Description copied from interface: Pointcut
Return the MethodMatcher for this pointcut.

Specified by:
getMethodMatcher in interface Pointcut
Returns:
the MethodMatcher (never null)

readResolve

private java.lang.Object readResolve()
Required to support serialization. Replaces with canonical instance on deserialization, protecting Singleton pattern. Alternative to overriding equals().


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object