org.apache.avalon.phoenix
Class BlockEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.apache.avalon.phoenix.BlockEvent
All Implemented Interfaces:
Serializable

public final class BlockEvent
extends EventObject

This is the class that is used to deliver notifications about Blocks state changes to the BlockListeners of a Server Application.

Author:
Peter Donald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BlockEvent(String name, Object block, BlockInfo blockInfo)
          Construct the BlockEvent.
 
Method Summary
 Block getBlock()
          Deprecated. Use getObject() instead as this may cause a ClassCastException
 BlockInfo getBlockInfo()
          Retrieve the BlockInfo for block.
 String getName()
          Retrieve name of block.
 Object getObject()
          Retrieve the block instance.
 
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

BlockEvent

public BlockEvent(String name,
                  Object block,
                  BlockInfo blockInfo)
Construct the BlockEvent.

Parameters:
name - the name of block
block - the block object
blockInfo - the BlockInfo object for block
Method Detail

getName

public String getName()
Retrieve name of block.

Returns:
the name of block

getObject

public Object getObject()
Retrieve the block instance.

Returns:
the block instance

getBlock

public Block getBlock()
Deprecated. Use getObject() instead as this may cause a ClassCastException

Retrieve the block instance.

Returns:
the block instance

getBlockInfo

public BlockInfo getBlockInfo()
Retrieve the BlockInfo for block.

Returns:
the BlockInfo for block


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.