javax.infobus
Interface InfoBusPropertyMap
- public abstract interface InfoBusPropertyMap
In JDK 1.1.x versions of InfoBus, InfoBusPropertyMap is
a temporary interface designed to provide a mechanism for use with
InfoBus 1.x components that wish to supply properties on
DataItemChangeEvents. To use it, the producer implements
the interface and provides a reference to the implementation class in
the change event constructor.
When implementing this interface for InfoBus 1.x, an implementation of
sun.com.java.util.collections.Map, such as HashMap may be used,
delegating the get() method to the class.
Note: Starting with InfoBus 2.0, this class and its get(Object) method
will be deprecated. Constructors that use it will be replaced with
constructors that specify java.util.Map instead.
Support for applications compiled with InfoBus 1.x will be present by
removing the get() method from InfoBusPropertyMap and adding a clause
to have it extend java.util.Map.
Method Summary |
java.lang.Object |
get(java.lang.Object key)
Returns the Object to which the specified key is mapped. |
get
public java.lang.Object get(java.lang.Object key)
- Returns the Object to which the specified key is mapped. Returns
null if the map contains no mapping for this key OR it maps to null.
key must be a String, otherwise ClassCastException should be thrown.
Property names should not contain the ‘*’ character.
- Parameters:
key
- the property name- Returns:
- the corresponding property, or null if no match
- Throws:
- ClassCastException - if key not a String