Package org.aspectj.weaver.loadtime
Class DefaultMessageHandler
java.lang.Object
org.aspectj.weaver.loadtime.DefaultMessageHandler
- All Implemented Interfaces:
IMessageHandler
- Author:
- Alexandre Vasseur (alex AT gnilux DOT com)
-
Field Summary
Fields inherited from interface org.aspectj.bridge.IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dontIgnore
(IMessage.Kind kind) Allow fine grained configuration after initialization.boolean
handleMessage
(IMessage message) Handle message, by reporting and/or throwing an AbortException.void
ignore
(IMessage.Kind kind) Allow fine grained configuration after initialization.boolean
isIgnoring
(IMessage.Kind kind) Signal clients whether this will ignore messages of a given type.
-
Constructor Details
-
DefaultMessageHandler
public DefaultMessageHandler()
-
-
Method Details
-
handleMessage
Description copied from interface:IMessageHandler
Handle message, by reporting and/or throwing an AbortException.- Specified by:
handleMessage
in interfaceIMessageHandler
- Parameters:
message
- the IMessage to handle - never null- Returns:
- true if this message was handled by this handler
- Throws:
AbortException
- depending on handler logic.
-
isIgnoring
Description copied from interface:IMessageHandler
Signal clients whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.- Specified by:
isIgnoring
in interfaceIMessageHandler
- Returns:
- true if this handler is ignoring all messages of this type
-
dontIgnore
Description copied from interface:IMessageHandler
Allow fine grained configuration after initialization. Minaly used in LTW. Most of the implementation can have this method be a no-op.- Specified by:
dontIgnore
in interfaceIMessageHandler
- Parameters:
kind
-
-
ignore
Description copied from interface:IMessageHandler
Allow fine grained configuration after initialization.- Specified by:
ignore
in interfaceIMessageHandler
- Parameters:
kind
-
-