| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.aop.aspectj.TypePatternClassFilter
public class TypePatternClassFilter
Spring AOP ClassFilter implementation using AspectJ type matching.
| Field Summary | 
|---|
| Fields inherited from interface org.springframework.aop.ClassFilter | 
|---|
| TRUE | 
| Constructor Summary | |
|---|---|
| TypePatternClassFilter()Creates a new instance of the TypePatternClassFilterclass. | |
| TypePatternClassFilter(String typePattern)Create a fully configured TypePatternClassFilterusing the  
 given type pattern. | |
| Method Summary | |
|---|---|
|  String | getTypePattern() | 
|  boolean | matches(Class clazz)Should the pointcut apply to the given interface or target class? | 
|  void | setTypePattern(String typePattern)Set the AspectJ type pattern to match. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TypePatternClassFilter()
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.
public TypePatternClassFilter(String typePattern)
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| Method Detail | 
|---|
public void setTypePattern(String typePattern)
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 invalidpublic String getTypePattern()
public boolean matches(Class clazz)
matches in interface ClassFilterclazz - candidate target class
IllegalStateException - if no setTypePattern(String) has been set| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||