org.apache.avalon.composition.event
Class CompositionEvent

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

public class CompositionEvent
extends EventObject

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

Version:
$Revision: 1.7 $ $Date: 2004/02/24 22:18:21 $
Author:
Avalon Development Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CompositionEvent(ContainmentModel source, DeploymentModel child)
          Create a CompositionEvent event.
 
Method Summary
 DeploymentModel getChild()
          Return the child that was added or removed from the containment model.
 ContainmentModel getContainmentModel()
          Return the the containment model that generated the event.
 String toString()
           
 
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,
                        DeploymentModel 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 DeploymentModel getChild()
Return the child that was added or removed from the containment model.

Returns:
the source containment model

getContainmentModel

public ContainmentModel getContainmentModel()
Return the the containment model that generated the event.

Returns:
the source containment model

toString

public String toString()


Copyright © The Apache Software Foundation. All Rights Reserved.