org.springframework.aop
Interface ClassFilter

All Known Implementing Classes:
ControlFlowPointcut, DefaultInterceptionIntroductionAdvisor, RegexpMethodPointcut, RootClassFilter

public interface ClassFilter

Filter that restricts matching of a pointcut or introduction to a given set of target classes.

Can be used as part of a pointcut, or for the entire targeting of an IntroductionAdvice.

Author:
Rod Johnson
Version: $Id: ClassFilter.java,v 1.3 2003/11/21 22:45:09 jhoeller Exp $
See Also: Pointcut

Field Summary
 final static ClassFilterTRUE
          Canonical instance of a ClassFilter that matches all classes.

Method Summary
 booleanmatches(Class clazz)
          Should the pointcut apply to the given interface or target class?

Field Detail

TRUE

public final static ClassFilter TRUE
Canonical instance of a ClassFilter that matches all classes.
Method Detail

matches

public boolean matches(Class clazz)
Should the pointcut apply to the given interface or target class?
Parameters:
clazz - candidate target class
Returns: whether the advice should apply to this candidate target class

Association Links

to Class org.springframework.aop.ClassFilter

Canonical instance of a ClassFilter that matches all classes.