Class SharedModel
java.lang.Object
org.eclipse.ecf.core.sharedobject.BaseSharedObject
org.eclipse.ecf.core.sharedobject.OptimisticSharedObject
org.eclipse.ecf.core.sharedobject.model.SharedModel
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,IIdentifiable
,ISharedObject
- Since:
- 2.4
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.eclipse.ecf.core.sharedobject.BaseSharedObject
DESTROYREMOTE_CODE, DESTROYSELFLOCAL_CODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addListener
(ISharedModelListener listener) protected SharedModel.Property
addProperty
(String name) protected SharedModel.Property
addProperty
(String name, Object value) protected SharedModel.Property
addProperty
(SharedModel.Property property) protected Collection<SharedModel.Property>
void
Method called by the ISharedObjectContainer upon ISharedObject destruction.protected void
fireListeners
(ISharedModelEvent event) protected SharedModel.Property
getOrAddProperty
(String propertyName) protected SharedModel.Property
getProperty
(String propertyName) protected void
handleListenerException
(ISharedModelListener l, Throwable exception) protected boolean
handlePropertyTo
(ID fromID, String msg, SharedModel.Property property) protected boolean
handleSharedObjectMsg
(ID fromID, SharedObjectMsg msg) protected void
boolean
removeListener
(ISharedModelListener listener) protected SharedModel.Property
removeProperty
(String propertyName) protected final void
sendPropertyTo
(ID target, String msg, SharedModel.Property property) protected final void
sendPropertyTo
(ID target, SharedModel.Property property) protected SharedModel.Property
setOrAddProperty
(String propertyName, Object value) protected void
setPropertiesFromMap
(Map<String, ?> map) Methods inherited from class org.eclipse.ecf.core.sharedobject.OptimisticSharedObject
initialize
Methods inherited from class org.eclipse.ecf.core.sharedobject.BaseSharedObject
addEventProcessor, clearEventProcessors, creationCompleted, destroyRemote, destroySelf, destroySelfLocal, fireEventProcessors, getAdapter, getConfig, getConnectedID, getContext, getGroupMemberIDs, getHomeContainerID, getID, getLocalContainerID, getProperties, getReplicaDescription, getReplicaDescriptions, getSharedObjectMsgFromEvent, handleEvent, handleEvents, handleSharedObjectCreateResponseEvent, handleSharedObjectMsg, handleSharedObjectMsgEvent, handleUnhandledEvent, init, isConnected, isPrimary, log, log, removeEventProcessor, replicateToRemoteContainers, sendSharedObjectMsgTo, sendSharedObjectMsgToPrimary, sendSharedObjectMsgToSelf, trace, traceCatching, traceEntering, traceEntering, traceEntering, traceExiting, traceExiting
-
Field Details
-
SEND_PROPERTY_TO_MSG
- See Also:
-
-
Constructor Details
-
SharedModel
public SharedModel()
-
-
Method Details
-
dispose
Description copied from interface:ISharedObject
Method called by the ISharedObjectContainer upon ISharedObject destruction. Once this method is called, no more Events will be passed to a ISharedObject until the init method is called again.- Specified by:
dispose
in interfaceISharedObject
- Overrides:
dispose
in classBaseSharedObject
- Parameters:
containerID
- the ID of the container that is disposing this ISharedObject
-
copyProperties
-
addProperty
-
addProperty
-
removeProperty
-
getProperty
-
getOrAddProperty
-
setOrAddProperty
-
removeAllProperties
protected void removeAllProperties() -
getMapFromProperties
-
setPropertiesFromMap