org.springframework.aop.support

Class RootClassFilter

  • java.lang.Object
    • org.springframework.aop.support.RootClassFilter
  • All Implemented Interfaces:
    java.io.Serializable, ClassFilter


    public class RootClassFilter
    extends java.lang.Object
    implements ClassFilter, java.io.Serializable
    Simple ClassFilter implementation that passes classes (and optionally subclasses).
    Author:
    Rod Johnson
    See Also:
    Serialized Form
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor and Description
      RootClassFilter(java.lang.Class<?> clazz) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean matches(java.lang.Class<?> candidate)
      Should the pointcut apply to the given interface or target class?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RootClassFilter

        public RootClassFilter(java.lang.Class<?> clazz)
    • Method Detail

      • matches

        public boolean matches(java.lang.Class<?> candidate)
        Description copied from interface: ClassFilter
        Should the pointcut apply to the given interface or target class?
        Specified by:
        matches in interface ClassFilter
        Parameters:
        candidate - the candidate target class
        Returns:
        whether the advice should apply to the given target class