org.beanfabrics.context
Class ParentAddedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.beanfabrics.context.ContextEvent
          extended by org.beanfabrics.context.ParentAddedEvent
All Implemented Interfaces:
java.io.Serializable

public class ParentAddedEvent
extends ContextEvent

An event which indicates that another context has been added as as a parent context to the event source.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParentAddedEvent(Context source, Context parent)
          Constructs a ParentAddedEvent.
 
Method Summary
 Context getParent()
          Returns the context that has been added as a parent to the event source.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParentAddedEvent

public ParentAddedEvent(Context source,
                        Context parent)
Constructs a ParentAddedEvent.

Parameters:
source -
parent -
Method Detail

getParent

public Context getParent()
Returns the context that has been added as a parent to the event source.

Returns:
the context that has been added as a parent