de.janrufmonitor.exception
Class PropagationFactory

java.lang.Object
  extended by de.janrufmonitor.exception.PropagationFactory

public class PropagationFactory
extends Object

This class is a exception propagation factory object. Single propagators can be added to the factory and are notified on exception events.

Author:
Thilo Brandt

Method Summary
 void add(IPropagator p)
          Adds a new propagator to the factory.
 void fire(Message m)
          Fires a propagator event with an exception object.
 void fire(Message m, String id)
          Fires a propagator event with an exception object for a specific propagator id.
static PropagationFactory getInstance()
          Gets a valid instacne of the PropagationFactory.
 void remove(IPropagator p)
          Removes a propagator from the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PropagationFactory getInstance()
Gets a valid instacne of the PropagationFactory.

Returns:

add

public void add(IPropagator p)
Adds a new propagator to the factory.

Parameters:
p -

remove

public void remove(IPropagator p)
Removes a propagator from the factory.

Parameters:
p -

fire

public void fire(Message m)
Fires a propagator event with an exception object.

Parameters:
m -

fire

public void fire(Message m,
                 String id)
Fires a propagator event with an exception object for a specific propagator id.

Parameters:
m -
id -


Copyright © 2010 by Thilo Brandt. All Rights Reserved.