org.springframework.aop
Class TruePointcut
java.lang.Object
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
Fields inherited from interface org.springframework.aop.Pointcut |
TRUE |
Constructor Summary |
private |
TruePointcut()
Enforce Singleton pattern. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final TruePointcut INSTANCE
TruePointcut
private TruePointcut()
- Enforce Singleton pattern.
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