|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.beancontext.BeanContextChildSupport
equip.data.beans.PropertyPublisherBean
generic property publisher. monitors a bean property and publishes it as a Tuple in a dataspace. PropertyPublisherBean publishes a data item of class equip.data.Tuple with two fields. The first is a equip.data.StringBox with the nominal class name of the tuple, and the second is the property value itself (if a subclass of equip.runtime.ValueBase) or an equip.data.SerializedObject (if the property value is serializable). The name of the item (field of equip.data.ItemData) is also set by configuration to identify individual data items. The GUID is arbitrary and allocated on creation. to be active we require: - a dataspace to publish to (reference to equip.data.beans.DataspaceBean) - a source bean reference (java.lang.Object) - name of property to publish (String) - name to use for data item (String) - nominal tuple class name (String)
| Field Summary | |
boolean |
debug
debug |
protected DataspaceBean |
mDataspace
dataspace |
protected boolean |
mIsConnected
active/connected |
protected java.lang.String |
mItemClassName
item class name |
protected GUID |
mItemId
dataspace item id |
protected java.lang.String |
mItemName
item name |
protected java.lang.String |
mPropertyName
source property name |
protected java.lang.Object |
mSource
source as object |
protected java.lang.Object |
mValue
last value |
| Fields inherited from class java.beans.beancontext.BeanContextChildSupport |
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
| Constructor Summary | |
PropertyPublisherBean()
no-arg constructor - required |
|
| Method Summary | |
protected ItemData |
encodePropertyValue(java.lang.Object value)
overridable type conversion of property value |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
fire property changed |
DataspaceBean |
getDataspace()
source getter |
boolean |
getDebug()
|
java.lang.String |
getItemClassName()
item name getter |
java.lang.String |
getItemName()
item name getter |
java.lang.String |
getPropertyName()
property name getter |
java.lang.Object |
getSource()
source getter |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
property change event |
void |
setDataspace(DataspaceBean dataspace)
dataspace setter - initialisation time only |
void |
setDebug(boolean d)
|
void |
setItemClassName(java.lang.String itemClassName)
item class name setter - initialisation time only |
void |
setItemName(java.lang.String itemName)
item name setter - initialisation time only |
void |
setPropertyName(java.lang.String propertyName)
property name setter - initialisation time only |
void |
setSource(java.lang.Object source)
source setter - initialisation time only |
| Methods inherited from class java.beans.beancontext.BeanContextChildSupport |
addPropertyChangeListener, addVetoableChangeListener, fireVetoableChange, getBeanContext, getBeanContextChildPeer, initializeBeanContextResources, isDelegated, releaseBeanContextResources, removePropertyChangeListener, removeVetoableChangeListener, serviceAvailable, serviceRevoked, setBeanContext, validatePendingSetBeanContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean debug
protected java.lang.Object mValue
protected java.lang.Object mSource
protected java.lang.String mPropertyName
protected DataspaceBean mDataspace
protected java.lang.String mItemName
protected java.lang.String mItemClassName
protected boolean mIsConnected
protected GUID mItemId
| Constructor Detail |
public PropertyPublisherBean()
| Method Detail |
public void setDebug(boolean d)
public boolean getDebug()
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
public void setSource(java.lang.Object source)
public java.lang.Object getSource()
public void setPropertyName(java.lang.String propertyName)
public java.lang.String getPropertyName()
public void setItemName(java.lang.String itemName)
public java.lang.String getItemName()
public void setItemClassName(java.lang.String itemClassName)
public java.lang.String getItemClassName()
public void setDataspace(DataspaceBean dataspace)
public DataspaceBean getDataspace()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListener
protected ItemData encodePropertyValue(java.lang.Object value)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||