Class TransactionSharedObject
- java.lang.Object
- 
- org.eclipse.ecf.core.sharedobject.BaseSharedObject
- 
- org.eclipse.ecf.core.sharedobject.TransactionSharedObject
 
 
- 
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable,- IIdentifiable,- ISharedObject
 
 public class TransactionSharedObject extends BaseSharedObject Superclass for shared object classes that replicate themselves transactionally.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ISharedObjectTransactionConfigconfigurationprotected ISharedObjectContainerTransactiontransaction- 
Fields inherited from class org.eclipse.ecf.core.sharedobject.BaseSharedObjectDESTROYREMOTE_CODE, DESTROYSELFLOCAL_CODE
 
- 
 - 
Constructor SummaryConstructors Constructor Description TransactionSharedObject()TransactionSharedObject(int timeout)TransactionSharedObject(ISharedObjectTransactionConfig config)Construct instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAdapter(Class clazz)protected voidinitialize()Initialize this shared object.- 
Methods inherited from class org.eclipse.ecf.core.sharedobject.BaseSharedObjectaddEventProcessor, clearEventProcessors, creationCompleted, destroyRemote, destroySelf, destroySelfLocal, dispose, fireEventProcessors, getConfig, getConnectedID, getContext, getGroupMemberIDs, getHomeContainerID, getID, getLocalContainerID, getProperties, getReplicaDescription, getReplicaDescriptions, getSharedObjectMsgFromEvent, handleEvent, handleEvents, handleSharedObjectCreateResponseEvent, handleSharedObjectMsg, handleSharedObjectMsg, handleSharedObjectMsgEvent, handleUnhandledEvent, init, isConnected, isPrimary, log, log, removeEventProcessor, replicateToRemoteContainers, sendSharedObjectMsgTo, sendSharedObjectMsgToPrimary, sendSharedObjectMsgToSelf, trace, traceCatching, traceEntering, traceEntering, traceEntering, traceExiting, traceExiting
 
- 
 
- 
- 
- 
Field Detail- 
transactionprotected ISharedObjectContainerTransaction transaction 
 - 
configurationprotected ISharedObjectTransactionConfig configuration 
 
- 
 - 
Constructor Detail- 
TransactionSharedObjectpublic TransactionSharedObject() 
 - 
TransactionSharedObjectpublic TransactionSharedObject(int timeout) 
 - 
TransactionSharedObjectpublic TransactionSharedObject(ISharedObjectTransactionConfig config) Construct instance. The config parameter, if given, is used to configure the transactional replication of instances or subclass instances. If the config parameter is null, no replication messaging will occur and only host instance of object will be created.- Parameters:
- config-
 
 
- 
 - 
Method Detail- 
initializeprotected void initialize() throws SharedObjectInitExceptionDescription copied from class:BaseSharedObjectInitialize this shared object. Subclasses may override as appropriate to define custom initialization behavior. If initialization should fail, then a SharedObjectInitException should be thrown by implementing code. Also, subclasses overriding this method should call super.initialize() before running their own code.- Overrides:
- initializein class- BaseSharedObject
- Throws:
- SharedObjectInitException- if initialization should throw
 
 - 
getAdapterpublic Object getAdapter(Class clazz) - Specified by:
- getAdapterin interface- org.eclipse.core.runtime.IAdaptable
- Overrides:
- getAdapterin class- BaseSharedObject
 
 
- 
 
-