类 TypePatternClassFilter
java.lang.Object
cn.taketoday.aop.aspectj.TypePatternClassFilter
- 所有已实现的接口:
ClassFilter
Framework AOP
ClassFilter implementation using AspectJ type matching.- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller, Sam Brannen
-
字段概要
从接口继承的字段 cn.taketoday.aop.ClassFilter
TRUE -
构造器概要
构造器构造器说明Creates a new instance of theTypePatternClassFilterclass.TypePatternClassFilter(String typePattern) Create a fully configuredTypePatternClassFilterusing the given type pattern. -
方法概要
修饰符和类型方法说明booleanReturn the AspectJ type pattern to match.inthashCode()booleanShould the pointcut apply to the given interface or target class?voidsetTypePattern(String typePattern) Set the AspectJ type pattern to match.toString()
-
构造器详细资料
-
TypePatternClassFilter
public TypePatternClassFilter()Creates a new instance of theTypePatternClassFilterclass.This is the JavaBean constructor; be sure to set the
typePatternproperty, else a no doubt fatalIllegalStateExceptionwill be thrown when thematches(Class)method is first invoked. -
TypePatternClassFilter
Create a fully configuredTypePatternClassFilterusing the given type pattern.- 参数:
typePattern- the type pattern that AspectJ weaver should parse
-
-
方法详细资料
-
setTypePattern
Set the AspectJ type pattern to match.Examples include:
cn.taketoday.beans.*This will match any class or interface in the given package.cn.taketoday.beans.ITestBean+This will match theITestBeaninterface and any class that implements it.These conventions are established by AspectJ, not Framework AOP.
- 参数:
typePattern- the type pattern that AspectJ weaver should parse
-
getTypePattern
Return the AspectJ type pattern to match. -
matches
Should the pointcut apply to the given interface or target class?- 指定者:
matches在接口中ClassFilter- 参数:
clazz- candidate target class- 返回:
- whether the advice should apply to this candidate target class
- 抛出:
IllegalStateException- if nosetTypePattern(String)has been set
-
equals
-
hashCode
public int hashCode() -
toString
-