Top Fields Constructors Methods
org.aspectj.weaver.loadtime

public Class DefaultMessageHandler

extends Object
implements IMessageHandler
Class Inheritance
All Implemented Interfaces
org.aspectj.bridge.IMessageHandler
Imports
org.aspectj.bridge.AbortException, .IMessage, .IMessageHandler

Author
Alexandre Vasseur (alex AT gnilux DOT com)

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
dontIgnore(IMessage.Kind kind)

Implements org.aspectj.bridge.IMessageHandler.dontIgnore.

Allow fine grained configuration after initialization.
public boolean
handleMessage(IMessage
the IMessage to handle - never null
message
)

Implements org.aspectj.bridge.IMessageHandler.handleMessage.

Handle message, by reporting and/or throwing an AbortException.
public void
ignore(IMessage.Kind kind)

Implements org.aspectj.bridge.IMessageHandler.ignore.

Allow fine grained configuration after initialization.
public boolean
isIgnoring(IMessage.Kind kind)

Implements org.aspectj.bridge.IMessageHandler.isIgnoring.

Signal clients whether this will ignore messages of a given type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isDebugback to summary
pack-priv boolean isDebug
isVerboseback to summary
pack-priv boolean isVerbose
showWarnback to summary
pack-priv boolean showWarn
showWeaveInfoback to summary
pack-priv boolean showWeaveInfo

Constructor Detail

DefaultMessageHandlerback to summary
public DefaultMessageHandler()

Method Detail

dontIgnoreback to summary
public void dontIgnore(IMessage.Kind kind)

Implements org.aspectj.bridge.IMessageHandler.dontIgnore.

Doc from org.aspectj.bridge.IMessageHandler.dontIgnore.

Allow fine grained configuration after initialization. Minaly used in LTW. Most of the implementation can have this method be a no-op.

handleMessageback to summary
public boolean handleMessage(IMessage message) throws AbortException

Implements org.aspectj.bridge.IMessageHandler.handleMessage.

Doc from org.aspectj.bridge.IMessageHandler.handleMessage.

Handle message, by reporting and/or throwing an AbortException.

Parameters
message:IMessage

the IMessage to handle - never null

Returns:boolean

true if this message was handled by this handler

Exceptions
AbortException:
depending on handler logic.
ignoreback to summary
public void ignore(IMessage.Kind kind)

Implements org.aspectj.bridge.IMessageHandler.ignore.

Doc from org.aspectj.bridge.IMessageHandler.ignore.

Allow fine grained configuration after initialization.

isIgnoringback to summary
public boolean isIgnoring(IMessage.Kind kind)

Implements org.aspectj.bridge.IMessageHandler.isIgnoring.

Doc from org.aspectj.bridge.IMessageHandler.isIgnoring.

Signal clients whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.

Returns:boolean

true if this handler is ignoring all messages of this type