dsto.dfc.reflection
Class Delegates

java.lang.Object
  extended by dsto.dfc.reflection.Delegates

public class Delegates
extends Object

A set of delegates for notification.

Author:
Matthew Phillips

Constructor Summary
Delegates()
           
 
Method Summary
 void add(IDelegate delegate)
           
 void fire()
          Invoke all delegates with an empty argument list.
 void fire(Object... args)
          Invoke all delegates with the given argument list.
 void remove(IDelegate delegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delegates

public Delegates()
Method Detail

add

public void add(IDelegate delegate)

remove

public void remove(IDelegate delegate)

fire

public void fire()
          throws InvokeException
Invoke all delegates with an empty argument list.

Throws:
InvokeException

fire

public void fire(Object... args)
          throws InvokeException
Invoke all delegates with the given argument list.

Throws:
InvokeException


Copyright © 2008 Commonwealth of Australia