类 TypePatternClassFilter
java.lang.Object
infra.aop.aspectj.TypePatternClassFilter
- 所有已实现的接口:
ClassFilter
Framework AOP
ClassFilter implementation using AspectJ type matching.- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller, Sam Brannen
-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.ClassFilter
ClassFilter.IntersectionClassFilter, ClassFilter.NegateClassFilter, ClassFilter.UnionClassFilter -
字段概要
字段从接口继承的字段 infra.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?private StringreplaceBooleanOperators(String pcExpr) If a type pattern has been specified in XML, the user cannot writeandas "&&" (though && will work).voidsetTypePattern(String typePattern) Set the AspectJ type pattern to match.toString()
-
字段详细资料
-
typePattern
-
aspectJTypePatternMatcher
@Nullable private org.aspectj.weaver.tools.TypePatternMatcher aspectJTypePatternMatcher
-
-
构造器详细资料
-
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:
infra.beans.*This will match any class or interface in the given package.infra.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
-
replaceBooleanOperators
If a type pattern has been specified in XML, the user cannot writeandas "&&" (though && will work). We also allowandbetween two sub-expressions.This method converts back to
&&for the AspectJ pointcut parser. -
equals
-
hashCode
public int hashCode() -
toString
-