org.jasen.error
Class ErrorHandlerBroker

java.lang.Object
  extended byorg.jasen.error.ErrorHandlerBroker

public final class ErrorHandlerBroker
extends Object

Singleton class which provides application-wide access to the engine error handler.

Author:
Jason Polites

Method Summary
 JasenErrorHandler getErrorHandler()
          Gets the current application-wide error handler
static ErrorHandlerBroker getInstance()
          Gets the single (per JVM) error handler instance
 void setErrorHandler(JasenErrorHandler handler)
          Sets true if the message could not be parsed, false otherwise
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final ErrorHandlerBroker getInstance()
Gets the single (per JVM) error handler instance

Returns:
The current error handler broker instance

getErrorHandler

public JasenErrorHandler getErrorHandler()
Gets the current application-wide error handler

Returns:
The current (only) error handler

setErrorHandler

public void setErrorHandler(JasenErrorHandler handler)
Sets true if the message could not be parsed, false otherwise

Parameters:
handler - The current (only) error handler