org.springframework.aop.aspectj
Class AspectJWeaverMessageHandler

java.lang.Object
  extended by org.springframework.aop.aspectj.AspectJWeaverMessageHandler

public class AspectJWeaverMessageHandler
extends java.lang.Object

Implementation of AspectJ's IMessageHandler interface that routes AspectJ weaving messages through the same logging system as the regular Spring messages.

Pass the option...

-XmessageHandlerClass:org.springframework.aop.aspectj.AspectJWeaverMessageHandler

to the weaver; for example, specifying the following in a "META-INF/aop.xml file:

<weaver options="..."/>

Since:
2.0
Author:
Adrian Colyer, Juergen Hoeller

Field Summary
private static java.lang.String AJ_ID
           
private static Log LOGGER
           
 
Constructor Summary
AspectJWeaverMessageHandler()
           
 
Method Summary
 void dontIgnore(Kind messageKind)
           
 boolean handleMessage(IMessage message)
           
 void ignore(Kind kind)
           
 boolean isIgnoring(Kind messageKind)
           
private  java.lang.String makeMessageFor(IMessage aMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AJ_ID

private static final java.lang.String AJ_ID
See Also:
Constant Field Values

LOGGER

private static final Log LOGGER
Constructor Detail

AspectJWeaverMessageHandler

public AspectJWeaverMessageHandler()
Method Detail

handleMessage

public boolean handleMessage(IMessage message)
                      throws AbortException
Throws:
AbortException

makeMessageFor

private java.lang.String makeMessageFor(IMessage aMessage)

isIgnoring

public boolean isIgnoring(Kind messageKind)

dontIgnore

public void dontIgnore(Kind messageKind)

ignore

public void ignore(Kind kind)