org.apache.avalon.composition.event
Class CompositionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.apache.avalon.composition.event.ModelEvent
          extended byorg.apache.avalon.composition.event.ContainmentEvent
              extended byorg.apache.avalon.composition.event.CompositionEvent
All Implemented Interfaces:
Serializable

public class CompositionEvent
extends ContainmentEvent

A event raised by a containment model as a result of the addition or removal of a subsidiary model.

Version:
$Revision: 1.2 $ $Date: 2004/01/01 13:06:54 $
Author:
Stephen McConnell
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CompositionEvent(ContainmentModel source, Model child)
          Create a CompositionEvent event.
 
Method Summary
 Model getChild()
          Return the child that was added or removed from the containment model.
 String toString()
           
 
Methods inherited from class org.apache.avalon.composition.event.ContainmentEvent
getContainmentModel
 
Methods inherited from class org.apache.avalon.composition.event.ModelEvent
getModel
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositionEvent

public CompositionEvent(ContainmentModel source,
                        Model child)
Create a CompositionEvent event.

Parameters:
source - the comtainment model raising the event
child - the model that is the subject of composition
Method Detail

getChild

public Model getChild()
Return the child that was added or removed from the containment model.

Returns:
the source containment model

toString

public String toString()


Copyright © Apache Software Foundation. All Rights Reserved.