java.lang.Object | |
↳ | org.springframework.aop.aspectj.TypePatternClassFilter |
Spring AOP ClassFilter
implementation using AspectJ type matching.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.aop.ClassFilter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of the
TypePatternClassFilter class. | |||||||||||
Create a fully configured
TypePatternClassFilter using the
given type pattern. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Should the pointcut apply to the given interface or target class?
| |||||||||||
Set the AspectJ type pattern to match.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.ClassFilter
|
Creates a new instance of the TypePatternClassFilter
class.
This is the JavaBean constructor; be sure to set the
typePattern
property, else a
no doubt fatal IllegalStateException
will be thrown
when the matches(Class)
method is first invoked.
Create a fully configured TypePatternClassFilter
using the
given type pattern.
typePattern | the type pattern that AspectJ weaver should parse |
---|
IllegalArgumentException | if the supplied typePattern is null
or is recognized as invalid
|
---|
Should the pointcut apply to the given interface or target class?
clazz | candidate target class |
---|
IllegalStateException | if no setTypePattern(String) has been set
|
---|
Set the AspectJ type pattern to match.
Examples include:
org.springframework.beans.*
This will match any class or interface in the given package.
org.springframework.beans.ITestBean+
This will match the ITestBean
interface and any class
that implements it.
These conventions are established by AspectJ, not Spring AOP.
typePattern | the type pattern that AspectJ weaver should parse |
---|
IllegalArgumentException | if the supplied typePattern is null
or is recognized as invalid
|
---|