Package org.eclipse.ecf.provider.generic
Class SOConfig
- java.lang.Object
- 
- org.eclipse.ecf.provider.generic.SOConfig
 
- 
- All Implemented Interfaces:
- ISharedObjectConfig
 
 public class SOConfig extends Object implements ISharedObjectConfig 
- 
- 
Field SummaryFields Modifier and Type Field Description protected SOContainercontainerprotected SOContextcontextprotected IDhomeContainerIDprotected booleanisActiveprotected Mappropertiesprotected IDsharedObjectID
 - 
Constructor SummaryConstructors Constructor Description SOConfig(ID sharedObjectID, ID homeContainerID, SOContainer cont, Map dict)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ISharedObjectContextgetContext()Get the ISharedObjectContext instance for this ISharedObject.IDgetHomeContainerID()Get the ID of the container that is the home of the primary copy of the ISharedObject instance.MapgetProperties()Get properties associated with with this ISharedObjectIDgetSharedObjectID()Get the ID associated with this ISharedObject by its container.protected voidmakeActive(IQueueEnqueue queue)protected voidmakeInactive()
 
- 
- 
- 
Field Detail- 
containerprotected SOContainer container 
 - 
sharedObjectIDprotected ID sharedObjectID 
 - 
homeContainerIDprotected ID homeContainerID 
 - 
isActiveprotected boolean isActive 
 - 
propertiesprotected Map properties 
 - 
contextprotected SOContext context 
 
- 
 - 
Constructor Detail- 
SOConfigpublic SOConfig(ID sharedObjectID, ID homeContainerID, SOContainer cont, Map dict) 
 
- 
 - 
Method Detail- 
makeActiveprotected void makeActive(IQueueEnqueue queue) 
 - 
makeInactiveprotected void makeInactive() 
 - 
getSharedObjectIDpublic ID getSharedObjectID() Description copied from interface:ISharedObjectConfigGet the ID associated with this ISharedObject by its container. Containers must provide an implementation of this configuration that provides a non-null ID instance in response to this method call.- Specified by:
- getSharedObjectIDin interface- ISharedObjectConfig
- Returns:
- ID that ISharedObject can use for imlementing its own ISharedObject.getID(). Will not be null.
 
 - 
getHomeContainerIDpublic ID getHomeContainerID() Description copied from interface:ISharedObjectConfigGet the ID of the container that is the home of the primary copy of the ISharedObject instance.- Specified by:
- getHomeContainerIDin interface- ISharedObjectConfig
- Returns:
- the ID of the container that is the home of the primary copy of the ISharedObject instance. Will not be null.
 
 - 
getContextpublic ISharedObjectContext getContext() Description copied from interface:ISharedObjectConfigGet the ISharedObjectContext instance for this ISharedObject. The ISharedObjectContext provides access to container-provided services, including messaging to remote containers and to remote replicas of the ISharedObject, as well as access to OSGI-platform services.- Specified by:
- getContextin interface- ISharedObjectConfig
- Returns:
- ISharedObjectContext for the ISharedObject to use to access container and associated services. Will return null if context is no longer valid.
 
 - 
getPropertiespublic Map getProperties() Description copied from interface:ISharedObjectConfigGet properties associated with with this ISharedObject- Specified by:
- getPropertiesin interface- ISharedObjectConfig
- Returns:
- Map with properties associated with this ISharedObject instance. Will not be null.
 
 
- 
 
-