Class AjdeCoreMessageHandlerAdapter

java.lang.Object
org.aspectj.ajde.core.internal.AjdeCoreMessageHandlerAdapter
All Implemented Interfaces:
IMessageHandler

public class AjdeCoreMessageHandlerAdapter extends Object implements IMessageHandler
Enables the messages from the compiler/weaver to be passed on to the tool's implementation so they can handle it as they wish
  • Constructor Details

    • AjdeCoreMessageHandlerAdapter

      public AjdeCoreMessageHandlerAdapter(IBuildMessageHandler messageHandler)
  • Method Details

    • dontIgnore

      public void dontIgnore(IMessage.Kind kind)
      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 interface IMessageHandler
    • handleMessage

      public boolean handleMessage(IMessage message) throws AbortException
      Description copied from interface: IMessageHandler
      Handle message, by reporting and/or throwing an AbortException.
      Specified by:
      handleMessage in interface IMessageHandler
      Parameters:
      message - the IMessage to handle - never null
      Returns:
      true if this message was handled by this handler
      Throws:
      AbortException - depending on handler logic.
    • ignore

      public void ignore(IMessage.Kind kind)
      Description copied from interface: IMessageHandler
      Allow fine grained configuration after initialization.
      Specified by:
      ignore in interface IMessageHandler
    • isIgnoring

      public boolean isIgnoring(IMessage.Kind kind)
      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 interface IMessageHandler
      Returns:
      true if this handler is ignoring all messages of this type