Class RemoteServiceContainerAdapterImpl
- java.lang.Object
-
- org.eclipse.ecf.remoteservice.RemoteServiceContainerAdapterImpl
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,IRemoteServiceConsumer,IRemoteServiceContainerAdapter,IRemoteServiceHost
- Direct Known Subclasses:
RSARemoteServiceContainerAdapter
public class RemoteServiceContainerAdapterImpl extends Object implements IRemoteServiceContainerAdapter
- Since:
- 8.3
-
-
Field Summary
Fields Modifier and Type Field Description protected List<IRemoteServiceListener>listenersprotected Map<IRemoteServiceReference,List<AbstractRemoteService>>refToImplMapprotected RemoteServiceRegistryImplregistry
-
Constructor Summary
Constructors Constructor Description RemoteServiceContainerAdapterImpl(IContainer container)RemoteServiceContainerAdapterImpl(IContainer container, org.eclipse.equinox.concurrent.future.IExecutor executor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRemoteServiceListener(IRemoteServiceListener listener)Add listener for remote service registration/unregistration for this containerorg.eclipse.equinox.concurrent.future.IFutureasyncGetRemoteServiceReferences(ID[] idFilter, String clazz, String filter)Asynchronously returns an array ofIRemoteServiceReferenceobjects.org.eclipse.equinox.concurrent.future.IFutureasyncGetRemoteServiceReferences(ID target, String clazz, String filter)Asynchronously returns an array ofIRemoteServiceReferenceobjects.org.eclipse.equinox.concurrent.future.IFutureasyncGetRemoteServiceReferences(ID target, ID[] idFilter, String clazz, String filter)Asynchronously returns an array ofIRemoteServiceReferenceobjects.protected static StringcheckServiceClass(String[] clazzes, Object serviceObject)protected voidconnectToRemoteServiceTarget(ID target)protected IRemoteServiceRegisteredEventcreateRegisteredEvent(RemoteServiceRegistrationImpl registration)protected RemoteServiceRegistrationImplcreateRegistration()IRemoteFiltercreateRemoteFilter(String filter)Creates aIRemoteFilterobject.protected AbstractRemoteServicecreateRemoteService(RemoteServiceRegistrationImpl registration)protected IRemoteServiceUnregisteredEventcreateUnregisteredEvent(RemoteServiceRegistrationImpl registration)voiddispose()protected voidfireRemoteServiceListeners(IRemoteServiceEvent event)ObjectgetAdapter(Class adapter)IRemoteServiceReference[]getAllRemoteServiceReferences(String clazz, String filter)Returns an array ofIRemoteServiceReferenceobjects.protected IConnectContextgetConnectContext()protected IContainergetContainer()protected org.eclipse.equinox.concurrent.future.IExecutorgetExecutor()protected IDgetLocalContainerID()protected RemoteServiceRegistryImplgetRegistry()IRemoteServicegetRemoteService(IRemoteServiceReference reference)Get remote service for given IRemoteServiceReference.protected IRemoteServiceCallPolicygetRemoteServiceCallPolicy()IRemoteServiceIDgetRemoteServiceID(ID containerID, long containerRelativeID)Get a remote service ID from a containerID and a containerRelative long value.NamespacegetRemoteServiceNamespace()Get namespace to use for this remote service provider.IRemoteServiceReferencegetRemoteServiceReference(IRemoteServiceID serviceID)Get the remote service reference known to this container for the given IRemoteServiceID.IRemoteServiceReference[]getRemoteServiceReferences(ID[] idFilter, String clazz, String filter)Returns an array ofIRemoteServiceReferenceobjects.IRemoteServiceReference[]getRemoteServiceReferences(ID target, String clazz, String filter)Returns an array ofIRemoteServiceReferenceobjects.IRemoteServiceReference[]getRemoteServiceReferences(ID target, ID[] idFilter, String clazz, String filter)Returns an array ofIRemoteServiceReferenceobjects.protected RemoteServiceRegistrationImplgetRemoteServiceRegistrationImpl(IRemoteServiceReference reference)protected voidhandleServiceUnregister(RemoteServiceRegistrationImpl registration)IRemoteServiceRegistrationregisterRemoteService(String[] clazzes, Object service, Dictionary properties)Register a new remote service.voidremoveRemoteServiceListener(IRemoteServiceListener listener)Remove remote service registration/unregistration listener for this container.voidsetConnectContextForAuthentication(IConnectContext connectContext)Set connect context for authentication upon subsequent calls toIRemoteServiceContainerAdapter.getRemoteServiceReferences(ID[], String, String)orIRemoteServiceContainerAdapter.asyncGetRemoteServiceReferences(ID[], String, String).protected voidsetExecutor(org.eclipse.equinox.concurrent.future.IExecutor executor)protected voidsetRegistry(RemoteServiceRegistryImpl registry)booleansetRemoteServiceCallPolicy(IRemoteServiceCallPolicy policy)Set the remote service call policy to enable authorization on remote service method callsbooleanungetRemoteService(IRemoteServiceReference ref)Unget IRemoteServiceReference.
-
-
-
Field Detail
-
registry
protected RemoteServiceRegistryImpl registry
-
listeners
protected final List<IRemoteServiceListener> listeners
-
refToImplMap
protected final Map<IRemoteServiceReference,List<AbstractRemoteService>> refToImplMap
-
-
Constructor Detail
-
RemoteServiceContainerAdapterImpl
public RemoteServiceContainerAdapterImpl(IContainer container, org.eclipse.equinox.concurrent.future.IExecutor executor)
-
RemoteServiceContainerAdapterImpl
public RemoteServiceContainerAdapterImpl(IContainer container)
-
-
Method Detail
-
dispose
public void dispose()
-
addRemoteServiceListener
public void addRemoteServiceListener(IRemoteServiceListener listener)
Description copied from interface:IRemoteServiceContainerAdapterAdd listener for remote service registration/unregistration for this container- Specified by:
addRemoteServiceListenerin interfaceIRemoteServiceConsumer- Specified by:
addRemoteServiceListenerin interfaceIRemoteServiceContainerAdapter- Specified by:
addRemoteServiceListenerin interfaceIRemoteServiceHost- Parameters:
listener- notified of service registration/unregistration events. Must not benull.
-
removeRemoteServiceListener
public void removeRemoteServiceListener(IRemoteServiceListener listener)
Description copied from interface:IRemoteServiceContainerAdapterRemove remote service registration/unregistration listener for this container.- Specified by:
removeRemoteServiceListenerin interfaceIRemoteServiceConsumer- Specified by:
removeRemoteServiceListenerin interfaceIRemoteServiceContainerAdapter- Specified by:
removeRemoteServiceListenerin interfaceIRemoteServiceHost- Parameters:
listener- to remove. Must not benull.
-
setConnectContextForAuthentication
public void setConnectContextForAuthentication(IConnectContext connectContext)
Description copied from interface:IRemoteServiceContainerAdapterSet connect context for authentication upon subsequent calls toIRemoteServiceContainerAdapter.getRemoteServiceReferences(ID[], String, String)orIRemoteServiceContainerAdapter.asyncGetRemoteServiceReferences(ID[], String, String). This method should be called with a non-null connectContext in order to allow authentication to occur during.- Specified by:
setConnectContextForAuthenticationin interfaceIRemoteServiceConsumer- Specified by:
setConnectContextForAuthenticationin interfaceIRemoteServiceContainerAdapter- Parameters:
connectContext- the connect context to use for authenticating. Ifnull, then no authentication will be attempted.
-
setRemoteServiceCallPolicy
public boolean setRemoteServiceCallPolicy(IRemoteServiceCallPolicy policy)
Description copied from interface:IRemoteServiceContainerAdapterSet the remote service call policy to enable authorization on remote service method calls- Specified by:
setRemoteServiceCallPolicyin interfaceIRemoteServiceContainerAdapter- Parameters:
policy- Implementation ofIRemoteServiceCallPolicycontaining authorization specific code- Returns:
trueif the underlying provider supports using the policy,falseif it does not support using the policy.
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable
-
registerRemoteService
public IRemoteServiceRegistration registerRemoteService(String[] clazzes, Object service, Dictionary properties)
Description copied from interface:IRemoteServiceContainerAdapterRegister a new remote service. This method is to be called by the service server...i.e. the client that wishes to make available a service to other client within this container.- Specified by:
registerRemoteServicein interfaceIRemoteServiceContainerAdapter- Specified by:
registerRemoteServicein interfaceIRemoteServiceHost- Parameters:
clazzes- the interface classes that the service exposes to remote clients. Must not benulland must not be an empty array.service- the service object. Under normal conditions this object must- not be
null - implement all of the classes specified by the first parameter
nullis if the service propertyConstants.SERVICE_REGISTER_PROXYis set in the properties. IfConstants.SERVICE_REGISTER_PROXYis set in the properties parameter (to an arbitrary value), then the service object may then benull.- not be
properties- to be associated with service- Returns:
- IRemoteServiceRegistration the service registration. Will not
return
null.
-
getRemoteServiceReferences
public IRemoteServiceReference[] getRemoteServiceReferences(ID target, ID[] idFilter, String clazz, String filter) throws InvalidSyntaxException, ContainerConnectException
Description copied from interface:IRemoteServiceContainerAdapterReturns an array ofIRemoteServiceReferenceobjects. The returned array ofIRemoteServiceReferenceobjects contains services that were registered under the specified class and match the specified idFilter, and filter criteria.Note this method assumes that the enclosing container has previously been connected, and uses the idFilter to filter among targets within the previously connected set of container IDs. To request connection as part of reference lookup, see
IRemoteServiceContainerAdapter.getRemoteServiceReferences(ID, String, String).The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime.
targetis a remote container to connect to. Ifnull, no connection attempt is made.idFilteris used to select a registered services that were registered by a given set of containers with id in idFilter. Only services exposed by a container with id in idFilter will be returned. IfidFilterisnull, all containers are considered to match the filter.filteris used to select the registered service whose properties objects contain keys and values which satisfy the filter. SeeFilterfor a description of the filter string syntax. Iffilterisnull, all registered services are considered to match the filter. Iffiltercannot be parsed, anInvalidSyntaxExceptionwill be thrown with a human readable message where the filter became unparsable.- Specified by:
getRemoteServiceReferencesin interfaceIRemoteServiceConsumer- Specified by:
getRemoteServiceReferencesin interfaceIRemoteServiceContainerAdapter- Parameters:
target- a target container to connect to if enclosing container is not already connected. May benull.idFilter- an array of ID instances that will restrict the search for matching container ids If null, all remote containers will be considered in search for matching IRemoteServiceReference instances. May benull.clazz- the fully qualified name of the interface class that describes the desired service. Must not benull.filter- The filter criteria. May benull.- Returns:
- Array of IRemoteServiceReferences matching given search criteria or
nullif no services are found that match the search. - Throws:
InvalidSyntaxException- If filter contains an invalid filter string that cannot be parsed.ContainerConnectException- if container cannot connect
-
asyncGetRemoteServiceReferences
public org.eclipse.equinox.concurrent.future.IFuture asyncGetRemoteServiceReferences(ID target, ID[] idFilter, String clazz, String filter)
Description copied from interface:IRemoteServiceContainerAdapterAsynchronously returns an array ofIRemoteServiceReferenceobjects. The returned array ofIRemoteServiceReferenceobjects contains services that were registered under the specified class and match the specified idFilter, and filter criteria.The IFuture is returned immediately, and subsequent calls to
IFuture.get()orIFuture.get(long)will return the actual results received. The type of the Object returned fromIFuture.get()will be IRemoteServiceReference [].The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime.
targetis a remote container to connect to. Ifnull, no connection attempt is made.idFilteris used to select a registered services that were registered by a given set of containers with id in idFilter. Only services exposed by a container with id in idFilter will be returned. IfidFilterisnull, all containers are considered to match the filter.filteris used to select the registered service whose properties objects contain keys and values which satisfy the filter. SeeFilterfor a description of the filter string syntax. Iffilterisnull, all registered services are considered to match the filter. Iffiltercannot be parsed, anInvalidSyntaxExceptionwill be thrown with a human readable message where the filter became unparsable.- Specified by:
asyncGetRemoteServiceReferencesin interfaceIRemoteServiceConsumer- Specified by:
asyncGetRemoteServiceReferencesin interfaceIRemoteServiceContainerAdapter- Parameters:
target- an target to connect to if enclosing container is not already connected. May benull.idFilter- an array of ID instances that will restrict the search for matching container ids If null, all remote containers will be considered in search for matching IRemoteServiceReference instances. May benull.clazz- the fully qualified name of the interface class that describes the desired service. Must not benull.filter- The filter criteria. May benull.- Returns:
- IFuture that through subsequent calls to IFuture#get() will return
IRemoteServiceReference [] with IRemoteServiceReferences matching given search criteria.
Will not return
null.
-
getRemoteServiceReferences
public IRemoteServiceReference[] getRemoteServiceReferences(ID[] idFilter, String clazz, String filter) throws InvalidSyntaxException
Description copied from interface:IRemoteServiceContainerAdapterReturns an array ofIRemoteServiceReferenceobjects. The returned array ofIRemoteServiceReferenceobjects contains services that were registered under the specified class and match the specified idFilter, and filter criteria.Note this method assumes that the enclosing container has previously been connected, and uses the idFilter to filter among targets within the previously connected set of container IDs. To request connection as part of reference lookup, see
IRemoteServiceContainerAdapter.getRemoteServiceReferences(ID, String, String).The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime.
idFilteris used to select a registered services that were registered by a given set of containers with id in idFilter. Only services exposed by a container with id in idFilter will be returned.If
idFilterisnull, all containers are considered to match the filter.filteris used to select the registered service whose properties objects contain keys and values which satisfy the filter. SeeFilterfor a description of the filter string syntax.If
filterisnull, all registered services are considered to match the filter. Iffiltercannot be parsed, anInvalidSyntaxExceptionwill be thrown with a human readable message where the filter became unparsable.- Specified by:
getRemoteServiceReferencesin interfaceIRemoteServiceConsumer- Specified by:
getRemoteServiceReferencesin interfaceIRemoteServiceContainerAdapter- Parameters:
idFilter- an array of ID instances that will restrict the search for matching container ids If null, all remote containers will be considered in search for matching IRemoteServiceReference instances. May benull.clazz- the fully qualified name of the interface class that describes the desired service. Must not benull.filter- The filter criteria. May benull.- Returns:
- Array of IRemoteServiceReferences matching given search criteria or
nullif no services are found that match the search. - Throws:
InvalidSyntaxException- If filter contains an invalid filter string that cannot be parsed.
-
getRemoteServiceReferences
public IRemoteServiceReference[] getRemoteServiceReferences(ID target, String clazz, String filter) throws InvalidSyntaxException, ContainerConnectException
Description copied from interface:IRemoteServiceContainerAdapterReturns an array of
IRemoteServiceReferenceobjects. The returned array ofIRemoteServiceReferenceobjects contains services that were registered under the specified class and match the specified idFilter, and filter criteria.The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime.
target is a remote container to connect to.
filteris used to select the registered service whose properties objects contain keys and values which satisfy the filter. SeeFilterfor a description of the filter string syntax.If
filterisnull, all registered services are considered to match the filter. Iffiltercannot be parsed, anInvalidSyntaxExceptionwill be thrown with a human readable message where the filter became unparsable.- Specified by:
getRemoteServiceReferencesin interfaceIRemoteServiceConsumer- Specified by:
getRemoteServiceReferencesin interfaceIRemoteServiceContainerAdapter- Parameters:
target- an target to connect to if enclosing container is not already connected. May benull.clazz- the fully qualified name of the interface class that describes the desired service. Must not benull.filter- The filter criteria. May benull.- Returns:
- Array of IRemoteServiceReferences matching given search criteria or
nullif no services are found that match the search. - Throws:
InvalidSyntaxException- If filter contains an invalid filter string that cannot be parsed.ContainerConnectException- if container cannot connect
-
asyncGetRemoteServiceReferences
public org.eclipse.equinox.concurrent.future.IFuture asyncGetRemoteServiceReferences(ID[] idFilter, String clazz, String filter)
Description copied from interface:IRemoteServiceContainerAdapterAsynchronously returns an array ofIRemoteServiceReferenceobjects. The returned array ofIRemoteServiceReferenceobjects contains services that were registered under the specified class and match the specified idFilter, and filter criteria.Note this method assumes that the enclosing container has previously been connected, and uses the idFilter to filter among targets within the previously connected set of container IDs. To request connection as part of reference lookup, see
IRemoteServiceContainerAdapter.getRemoteServiceReferences(ID, String, String).The IFuture is returned immediately, and subsequent calls to
IFuture.get()orIFuture.get(long)will return the actual results received. The type of the Object returned fromIFuture.get()will be IRemoteServiceReference [].The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime.
idFilteris used to select a registered services that were registered by a given set of containers with id in idFilter. Only services exposed by a container with id in idFilter will be returned.If
idFilterisnull, all containers are considered to match the filter.filteris used to select the registered service whose properties objects contain keys and values which satisfy the filter. SeeFilterfor a description of the filter string syntax.- Specified by:
asyncGetRemoteServiceReferencesin interfaceIRemoteServiceConsumer- Specified by:
asyncGetRemoteServiceReferencesin interfaceIRemoteServiceContainerAdapter- Parameters:
idFilter- an array of ID instances that will restrict the search for matching container ids If null, all remote containers will be considered in search for matching IRemoteServiceReference instances. May benull.clazz- the fully qualified name of the interface class that describes the desired service. Must not benull.filter- The filter criteria. May benull.- Returns:
- IFuture that through subsequent calls to IFuture#get() will return
IRemoteServiceReference [] with IRemoteServiceReferences matching given search criteria.
Will not return
null.
-
asyncGetRemoteServiceReferences
public org.eclipse.equinox.concurrent.future.IFuture asyncGetRemoteServiceReferences(ID target, String clazz, String filter)
Description copied from interface:IRemoteServiceContainerAdapterAsynchronously returns an array ofIRemoteServiceReferenceobjects. The returned array ofIRemoteServiceReferenceobjects contains services that were registered under the specified class and match the specified idFilter, and filter criteria.The IFuture is returned immediately, and subsequent calls to
IFuture.get()orIFuture.get(long)will return the actual results received. The type of the Object returned fromIFuture.get()will be IRemoteServiceReference [].The list is valid at the time of the call to this method, however since the Framework is a very dynamic environment, services can be modified or unregistered at anytime.
idFilteris used to select a registered services that were registered by a given set of containers with id in idFilter. Only services exposed by a container with id in idFilter will be returned.target is a remote container to connect to.
filteris used to select the registered service whose properties objects contain keys and values which satisfy the filter. SeeFilterfor a description of the filter string syntax.- Specified by:
asyncGetRemoteServiceReferencesin interfaceIRemoteServiceConsumer- Specified by:
asyncGetRemoteServiceReferencesin interfaceIRemoteServiceContainerAdapter- Parameters:
target- an target to connect to if enclosing container is not already connected. May benull.clazz- the fully qualified name of the interface class that describes the desired service. Must not benull.filter- The filter criteria. May benull.- Returns:
- IFuture that through subsequent calls to IFuture#get() will return
IRemoteServiceReference [] with IRemoteServiceReferences matching given search criteria.
Will not return
null.
-
getAllRemoteServiceReferences
public IRemoteServiceReference[] getAllRemoteServiceReferences(String clazz, String filter) throws InvalidSyntaxException
Description copied from interface:IRemoteServiceContainerAdapterReturns an array of
IRemoteServiceReferenceobjects. The returned array ofIRemoteServiceReferenceobjects contains services that were registered under the specified class, or if the clazz parameter isnullall services registered.The list is valid at the time of the call to this method, however since the remote service container is a very dynamic environment, services can be modified or unregistered at anytime.
filteris used to select the registered service whose properties objects contain keys and values which satisfy the filter. SeeFilterfor a description of the filter string syntax.If
filterisnull, all registered services are considered to match the filter. Iffiltercannot be parsed, anInvalidSyntaxExceptionwill be thrown with a human readable message where the filter became unparsable.- Specified by:
getAllRemoteServiceReferencesin interfaceIRemoteServiceConsumer- Specified by:
getAllRemoteServiceReferencesin interfaceIRemoteServiceContainerAdapter- Parameters:
clazz- the fully qualified name of the interface class that describes the desired service. May benull.filter- The filter criteria. May benull.- Returns:
- Array of IRemoteServiceReferences matching given search criteria or
nullif no services are found that match the search. - Throws:
InvalidSyntaxException- If filter contains an invalid filter string that cannot be parsed.
-
getRemoteServiceNamespace
public Namespace getRemoteServiceNamespace()
Description copied from interface:IRemoteServiceContainerAdapterGet namespace to use for this remote service provider.- Specified by:
getRemoteServiceNamespacein interfaceIRemoteServiceConsumer- Specified by:
getRemoteServiceNamespacein interfaceIRemoteServiceContainerAdapter- Specified by:
getRemoteServiceNamespacein interfaceIRemoteServiceHost- Returns:
- Namespace to use for creating IRemoteServiceID for this remote service provider. Will
not return
null.
-
getRemoteServiceID
public IRemoteServiceID getRemoteServiceID(ID containerID, long containerRelativeID)
Description copied from interface:IRemoteServiceContainerAdapterGet a remote service ID from a containerID and a containerRelative long value. Will return a non-null value if the IRemoteServiceRegistration/Reference is currently 'known' to this container adapter.nullif not.- Specified by:
getRemoteServiceIDin interfaceIRemoteServiceConsumer- Specified by:
getRemoteServiceIDin interfaceIRemoteServiceContainerAdapter- Specified by:
getRemoteServiceIDin interfaceIRemoteServiceHost- Parameters:
containerID- the containerID that is the server/host for the remote service. Must not benull. This must be the containerID for the server/host of the remote service.containerRelativeID- the long value identifying the remote service relative to the container ID.- Returns:
- IRemoteServiceID instance if the associated IRemoteServiceRegistration/Reference is known to this container
adapter,
nullif it is not.
-
getRemoteServiceReference
public IRemoteServiceReference getRemoteServiceReference(IRemoteServiceID serviceID)
Description copied from interface:IRemoteServiceContainerAdapterGet the remote service reference known to this container for the given IRemoteServiceID. Note that this method must be guaranteed not to block by the provider implementation.- Specified by:
getRemoteServiceReferencein interfaceIRemoteServiceConsumer- Specified by:
getRemoteServiceReferencein interfaceIRemoteServiceContainerAdapter- Parameters:
serviceID- the serviceID to retrieve the IRemoteServiceReference for.- Returns:
- IRemoteServiceReference the remote service reference associated with the given serviceID.
Will return
nullif no IRemoteServiceReference found for the given serviceID.
-
getRemoteService
public IRemoteService getRemoteService(IRemoteServiceReference reference)
Description copied from interface:IRemoteServiceContainerAdapterGet remote service for given IRemoteServiceReference. Note that clients that call this method successfully should later callIRemoteServiceContainerAdapter.ungetRemoteService(IRemoteServiceReference)when the IRemoteService will no longer be used.- Specified by:
getRemoteServicein interfaceIRemoteServiceConsumer- Specified by:
getRemoteServicein interfaceIRemoteServiceContainerAdapter- Parameters:
reference- the IRemoteServiceReference for the desired service. Must not benull.- Returns:
- IRemoteService representing the remote service. If remote service
no longer exists for reference, then
nullis returned. - See Also:
IRemoteServiceContainerAdapter.ungetRemoteService(IRemoteServiceReference)
-
ungetRemoteService
public boolean ungetRemoteService(IRemoteServiceReference ref)
Description copied from interface:IRemoteServiceContainerAdapterUnget IRemoteServiceReference. Release all resources associated with the given IRemoteServiceReference. This method should be called by users of the IRemoteServiceReference that have previously calledIRemoteServiceContainerAdapter.getRemoteService(IRemoteServiceReference). If this method returns true, then the previously used IRemoteService will no longer be usable.- Specified by:
ungetRemoteServicein interfaceIRemoteServiceConsumer- Specified by:
ungetRemoteServicein interfaceIRemoteServiceContainerAdapter- Parameters:
ref- the IRemoteServiceReference to unget- Returns:
- true if unget successful, false if not. If this method returns true, then the IRemoteService instance previously retrieved via the given IRemoteServiceReference instance provided will no longer be usable.
- See Also:
IRemoteServiceContainerAdapter.getRemoteService(IRemoteServiceReference)
-
createRemoteFilter
public IRemoteFilter createRemoteFilter(String filter) throws InvalidSyntaxException
Description copied from interface:IRemoteServiceContainerAdapterCreates aIRemoteFilterobject. ThisIRemoteFilterobject may be used to match aIRemoteServiceReferenceobject or aDictionaryobject.If the filter cannot be parsed, an
InvalidSyntaxExceptionwill be thrown with a human readable message where the filter became unparsable.- Specified by:
createRemoteFilterin interfaceIRemoteServiceConsumer- Specified by:
createRemoteFilterin interfaceIRemoteServiceContainerAdapter- Parameters:
filter- The filter string.- Returns:
- A
IRemoteFilterobject encapsulating the filter string. - Throws:
InvalidSyntaxException- Iffiltercontains an invalid filter string that cannot be parsed.- See Also:
- "Framework specification for a description of the filter string syntax.",
FrameworkUtil.createFilter(String)
-
getRemoteServiceCallPolicy
protected IRemoteServiceCallPolicy getRemoteServiceCallPolicy()
-
getConnectContext
protected IConnectContext getConnectContext()
-
setExecutor
protected void setExecutor(org.eclipse.equinox.concurrent.future.IExecutor executor)
-
getExecutor
protected org.eclipse.equinox.concurrent.future.IExecutor getExecutor()
-
getContainer
protected IContainer getContainer()
-
getLocalContainerID
protected ID getLocalContainerID()
-
getRegistry
protected RemoteServiceRegistryImpl getRegistry()
-
setRegistry
protected void setRegistry(RemoteServiceRegistryImpl registry)
-
createRemoteService
protected AbstractRemoteService createRemoteService(RemoteServiceRegistrationImpl registration)
-
createRegisteredEvent
protected IRemoteServiceRegisteredEvent createRegisteredEvent(RemoteServiceRegistrationImpl registration)
-
fireRemoteServiceListeners
protected void fireRemoteServiceListeners(IRemoteServiceEvent event)
-
createRegistration
protected RemoteServiceRegistrationImpl createRegistration()
-
createUnregisteredEvent
protected IRemoteServiceUnregisteredEvent createUnregisteredEvent(RemoteServiceRegistrationImpl registration)
-
handleServiceUnregister
protected void handleServiceUnregister(RemoteServiceRegistrationImpl registration)
-
getRemoteServiceRegistrationImpl
protected RemoteServiceRegistrationImpl getRemoteServiceRegistrationImpl(IRemoteServiceReference reference)
-
connectToRemoteServiceTarget
protected void connectToRemoteServiceTarget(ID target) throws ContainerConnectException
- Parameters:
target- the ID target- Throws:
ContainerConnectException- container connect exception if cannot connect
-
-