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 Block
s state changes to the
BlockListener
s of a Server Application.
- Author:
- Peter Donald
- See Also:
- Serialized Form
BlockEvent
public BlockEvent(String name,
Object block,
BlockInfo blockInfo)
- Construct the
BlockEvent
.
- Parameters:
name
- the name of blockblock
- the block objectblockInfo
- the BlockInfo object for block
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.