Trull

edu.luc.cs.trull
Class MethodForwardingSupport

java.lang.Object
  extended by edu.luc.cs.trull.MethodForwardingSupport
All Implemented Interfaces:
Startable, Suspendable

 class MethodForwardingSupport
extends java.lang.Object
implements Startable, Suspendable

Method forwarding support for implementing Composite. The provided methods are distributed (forwarded) to each component in the list.


Field Summary
private  java.util.List components
          The list of components to which to forward the methods.
 
Constructor Summary
MethodForwardingSupport(java.util.List components)
          Constructs a method forwarding support instance for the given list of components.
 
Method Summary
 void resume()
          Resumes this suspendable component.
 void start(java.beans.PropertyChangeEvent incoming)
          Starts this startable component.
 void stop()
          Stops this startable component.
 void suspend()
          Suspends this suspendable component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

private java.util.List components
The list of components to which to forward the methods.

Constructor Detail

MethodForwardingSupport

public MethodForwardingSupport(java.util.List components)
Constructs a method forwarding support instance for the given list of components.

Parameters:
components - the list of components.
Method Detail

resume

public void resume()
Description copied from interface: Suspendable
Resumes this suspendable component.

Specified by:
resume in interface Suspendable

start

public void start(java.beans.PropertyChangeEvent incoming)
Description copied from interface: Startable
Starts this startable component.

Specified by:
start in interface Startable
Parameters:
incoming - the event that triggered the invocation of this method. May be null.

stop

public void stop()
Description copied from interface: Startable
Stops this startable component.

Specified by:
stop in interface Startable

suspend

public void suspend()
Description copied from interface: Suspendable
Suspends this suspendable component.

Specified by:
suspend in interface Suspendable

Trull

http://www.cs.luc.edu/trull/