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="..."/>
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dontIgnore(IMessage.
Implements org. Allow fine grained configuration after initialization. |
| public boolean | handleMessage(IMessage
the IMessage to handle - never null message)Implements org. Handle message, by reporting and/or throwing an AbortException. |
| public void | ignore(IMessage.
Implements org. Allow fine grained configuration after initialization. |
| public boolean | isIgnoring(IMessage.
Implements org. Signal clients whether this will ignore messages of a given type. |
| private String |
| AJ_ID | back to summary |
|---|---|
| private static final String AJ_ID | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| AspectJWeaverMessageHandler | back to summary |
|---|---|
| public AspectJWeaverMessageHandler() | |
| dontIgnore | back to summary |
|---|---|
| public void dontIgnore(IMessage. Implements org. Doc from org. Allow fine grained configuration after initialization. Minaly used in LTW. Most of the implementation can have this method be a no-op.
| |
| handleMessage | back to summary |
|---|---|
| public boolean handleMessage(IMessage message) throws AbortException Implements org. Doc from org. Handle message, by reporting and/or throwing an AbortException.
| |
| ignore | back to summary |
|---|---|
| public void ignore(IMessage. Implements org. Doc from org. Allow fine grained configuration after initialization.
| |
| isIgnoring | back to summary |
|---|---|
| public boolean isIgnoring(IMessage. Implements org. Doc from org. Signal clients whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.
| |
| makeMessageFor | back to summary |
|---|---|
| private String makeMessageFor(IMessage aMessage) | |