com.ibm.able.examples.ablebean
Class SimpleAbleBean
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.ibm.able.AbleObject
|
+--com.ibm.able.examples.ablebean.SimpleAbleBean
- public class SimpleAbleBean
- extends AbleObject
- implements java.io.Serializable
This class is an example of a simple AbleBean created by extending
AbleObject.
It copies the value of the inputBuffer to the outputBuffer
If no input connection exists, it will copy the value of the
simpleBeanColor property to the output buffer.
- Version:
- $Revision: 1.7 $, $Date: 2000/08/30 22:25:19 $
- See Also:
- Serialized Form
Fields inherited from class com.ibm.able.AbleObject |
changed,
chgSupport,
comment,
dataFlowEnabled,
destBufferConnections,
eventQueue,
fileName,
inputBuffer,
listeners,
logger,
name,
outputBuffer,
parent,
propertyConnectionMgr,
sourceBufferConnections,
state,
stateChgSupport |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
SimpleAbleBean()
Construct a simple AbleBean |
SimpleAbleBean(java.lang.String aName)
Construct a simple AbleBean with specified name. |
Method Summary |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
java.lang.String |
getSimpleBeanColor()
Get the color attribute |
void |
init()
Initialize the bean to a known initialized state. |
void |
process()
Perform the standard processing function performed by this bean. |
void |
reset()
Reset the bean to a known initialized state. |
void |
setSimpleBeanColor(java.lang.String newBeanColor)
Set the color attribute
Also fire a propertyChange event to notify any propertyChange listeners |
Methods inherited from class com.ibm.able.AbleObject |
addAbleEventListener,
addDestBufferConnection,
addPropertyChangeListener,
addPropertyConnection,
addSourceBufferConnection,
addStateChangeListener,
dataChanged,
firePropertyChange,
flushAbleEventQueue,
getAbleEventListeners,
getAbleEventProcessingEnabled,
getAbleEventQueueSize,
getBuffer,
getBufferContents,
getComment,
getDestBufferConnections,
getFileName,
getInputBuffer,
getInputBuffer,
getInputBufferAsStringArray,
getInputBufferContents,
getLogger,
getName,
getOutputBuffer,
getOutputBuffer,
getOutputBufferAsStringArray,
getOutputBufferContents,
getParent,
getPropertyConnectionManager,
getSleepTime,
getSourceBufferConnections,
getState,
handleAbleEvent,
hasInputBuffer,
hasOutputBuffer,
init,
isAbleEventPostingEnabled,
isAbleEventProcessingEnabled,
isChanged,
isConnectable,
isDataFlowEnabled,
isTimerEventProcessingEnabled,
notifyAbleEventListeners,
processAbleEvent,
processBufferConnections,
processNoEventProcessingEnabledSituation,
processTimerEvent,
propertyChange,
quitAll,
quitEnabledEventProcessing,
removeAbleEventListener,
removeAllAbleEventListeners,
removeAllBufferConnections,
removeAllPropertyConnections,
removeDestBufferConnection,
removePropertyChangeListener,
removePropertyConnection,
removeSourceBufferConnection,
removeStateChangeListener,
restartEnabledEventProcessing,
restoreFromFile,
restoreFromFile,
restoreFromSerializedFile,
restoreFromStream,
resumeAll,
resumeEnabledEventProcessing,
saveToFile,
saveToFile,
setAbleEventProcessingEnabled,
setChanged,
setComment,
setDataFlowEnabled,
setFileName,
setInputBuffer,
setInputBuffer,
setLogger,
setName,
setOutputBuffer,
setOutputBuffer,
setParent,
setSleepTime,
setState,
setTimerEventProcessingEnabled,
sourceConnectionsOK,
startEnabledEventProcessing,
suspendAll,
suspendEnabledEventProcessing,
toString |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
DefaultBeanColor
public static final java.lang.String DefaultBeanColor
SimpleAbleBean
public SimpleAbleBean()
throws java.rmi.RemoteException
- Construct a simple AbleBean
SimpleAbleBean
public SimpleAbleBean(java.lang.String aName)
throws java.rmi.RemoteException
- Construct a simple AbleBean with specified name.
- Parameters:
aName
- A String object specifying the object name
init
public void init()
throws java.rmi.RemoteException
- Initialize the bean to a known initialized state.
- Overrides:
- init in class AbleObject
reset
public void reset()
throws java.rmi.RemoteException
- Reset the bean to a known initialized state.
Fire a global property change event.
- Overrides:
- reset in class AbleObject
process
public void process()
throws java.rmi.RemoteException
- Perform the standard processing function performed by this bean.
This typically takes data from the inputBuffer, processes it,
and places it in the output buffer.
- Throws:
- AbleException - either RemoteException or process error
- Overrides:
- process in class AbleObject
setSimpleBeanColor
public void setSimpleBeanColor(java.lang.String newBeanColor)
throws java.rmi.RemoteException
- Set the color attribute
Also fire a propertyChange event to notify any propertyChange listeners
getSimpleBeanColor
public java.lang.String getSimpleBeanColor()
- Get the color attribute
Copyright
public static java.lang.String Copyright()
- Determine the copyright of this class.
- Returns:
- A String containing this class's copyright statement.
ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'