Package org.springframework.aop.aspectj
Class AspectJWeaverMessageHandler
- java.lang.Object
- org.springframework.aop.aspectj.AspectJWeaverMessageHandler
- All Implemented Interfaces:
org.aspectj.bridge.IMessageHandler
public class AspectJWeaverMessageHandler extends Object implements org.aspectj.bridge.IMessageHandler
Implementation of AspectJ'sIMessageHandlerinterface that routes AspectJ weaving messages through the same logging system as the regular Spring messages.Pass the option...
-XmessageHandlerClass:org.springframework.aop.aspectj.AspectJWeaverMessageHandlerto the weaver; for example, specifying the following in a "
META-INF/aop.xmlfile:<weaver options="..."/>- Since:
- 2.0
- Author:
- Adrian Colyer, Juergen Hoeller
Constructor Summary
Constructors Constructor Description AspectJWeaverMessageHandler()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddontIgnore(org.aspectj.bridge.IMessage.Kind messageKind)booleanhandleMessage(org.aspectj.bridge.IMessage message)voidignore(org.aspectj.bridge.IMessage.Kind kind)booleanisIgnoring(org.aspectj.bridge.IMessage.Kind messageKind)
Constructor Detail
AspectJWeaverMessageHandler
public AspectJWeaverMessageHandler()
Method Detail
handleMessage
public boolean handleMessage(org.aspectj.bridge.IMessage message) throws org.aspectj.bridge.AbortException
- Specified by:
handleMessagein interfaceorg.aspectj.bridge.IMessageHandler- Throws:
org.aspectj.bridge.AbortException
isIgnoring
public boolean isIgnoring(org.aspectj.bridge.IMessage.Kind messageKind)
- Specified by:
isIgnoringin interfaceorg.aspectj.bridge.IMessageHandler
dontIgnore
public void dontIgnore(org.aspectj.bridge.IMessage.Kind messageKind)
- Specified by:
dontIgnorein interfaceorg.aspectj.bridge.IMessageHandler
ignore
public void ignore(org.aspectj.bridge.IMessage.Kind kind)
- Specified by:
ignorein interfaceorg.aspectj.bridge.IMessageHandler