org.springframework.aop
Interface ClassFilter

All Known Implementing Classes:
AbstractRegexpMethodPointcut, ControlFlowPointcut, DefaultIntroductionAdvisor, RootClassFilter, TrueClassFilter

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
See Also:
Pointcut

Field Summary
static ClassFilter TRUE
          Canonical instance of a ClassFilter that matches all classes.
 
Method Summary
 boolean matches(Class clazz)
          Should the pointcut apply to the given interface or target class?
 

Field Detail

TRUE

public static final 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


Copyright (C) 2003-2004 The Spring Framework Project.