public interface IPlatformServices
jaggr-service
bundle.Modifier and Type | Method and Description |
---|---|
URI |
getAppContextURI()
This method returns the URI pointing to the context root of the consuming application.
|
Dictionary<String,String> |
getHeaders()
An interface method to get the headers from the application context.
|
URL |
getResource(String resourceName)
A method to access a resource within an application
|
Object |
getService(IServiceReference serviceReference)
Returns the service object corresponding to the service registration.
|
IServiceReference[] |
getServiceReferences(String clazz,
String filter)
Returns an array of service references for the services that were
registered under the specified class and filter.
|
IServiceRegistration |
registerService(String clazz,
Object service,
Dictionary<String,String> properties)
Registers the specified service object with the specified properties
under the specified class name with the platform.
|
boolean |
ungetService(IServiceReference serviceReference)
Removes the service reference from the platform
|
IServiceRegistration registerService(String clazz, Object service, Dictionary<String,String> properties)
clazz
- The class name under which the service is registeredservice
- The service objectproperties
- The properties for this service.com.ibm.jaggr.core.ServiceRegistration
IServiceReference[] getServiceReferences(String clazz, String filter) throws PlatformServicesException
clazz
- The class name under which the service is registeredfilter
- The specified filter expression is used to select the
registered services whose service properties contain keys and
values which satisfy the filter expressionorg.osgi.framework.ServiceReference
interface.PlatformServicesException
Object getService(IServiceReference serviceReference)
serviceReference
- Service reference object for the desired service object. For
OSGi implementation, this object refers to implementation of
org.osgi.framework.ServiceReference
interface.boolean ungetService(IServiceReference serviceReference)
serviceReference
- Service reference object. For OSGi implementation, this object
refers to implementation of org.osgi.framework.ServiceReference
interface.URL getResource(String resourceName)
resourceName
- URL
of the resourceDictionary<String,String> getHeaders()
Dictionary
of key-value pairs depicting the headers.URI getAppContextURI() throws URISyntaxException
URISyntaxException
Copyright © 2011-2015 IBM. All Rights Reserved.