Klasse AjdeCoreMessageHandlerAdapter

java.lang.Object
org.aspectj.ajde.core.internal.AjdeCoreMessageHandlerAdapter
Alle implementierten Schnittstellen:
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
  • Konstruktordetails

    • AjdeCoreMessageHandlerAdapter

      public AjdeCoreMessageHandlerAdapter(IBuildMessageHandler messageHandler)
  • Methodendetails

    • dontIgnore

      public void dontIgnore(IMessage.Kind kind)
      Beschreibung aus Schnittstelle kopiert: IMessageHandler
      Allow fine grained configuration after initialization. Minaly used in LTW. Most of the implementation can have this method be a no-op.
      Angegeben von:
      dontIgnore in Schnittstelle IMessageHandler
      Parameter:
      kind -
    • handleMessage

      public boolean handleMessage(IMessage message) throws AbortException
      Beschreibung aus Schnittstelle kopiert: IMessageHandler
      Handle message, by reporting and/or throwing an AbortException.
      Angegeben von:
      handleMessage in Schnittstelle IMessageHandler
      Parameter:
      message - the IMessage to handle - never null
      Gibt zurück:
      true if this message was handled by this handler
      Löst aus:
      AbortException - depending on handler logic.
    • ignore

      public void ignore(IMessage.Kind kind)
      Beschreibung aus Schnittstelle kopiert: IMessageHandler
      Allow fine grained configuration after initialization.
      Angegeben von:
      ignore in Schnittstelle IMessageHandler
      Parameter:
      kind -
    • isIgnoring

      public boolean isIgnoring(IMessage.Kind kind)
      Beschreibung aus Schnittstelle kopiert: IMessageHandler
      Signal clients whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.
      Angegeben von:
      isIgnoring in Schnittstelle IMessageHandler
      Gibt zurück:
      true if this handler is ignoring all messages of this type