service.getUriPath()
. It is not possible to register multiple webServices at a single path. If a new service is registered at the server with a path from another already registered service, then the new service replaces the old one.
@param webservice A {@link Webservice} instance to be registered at the server
This method is otherwise identical to {@link #registerService(String,Object,Dictionary)} and is provided toreturn a type safe {@code ServiceRegistration}. @param < S> Type of Service. @param clazz The class under whose name the service can be located. @param service The service object or a {@code ServiceFactory} object. @param properties The properties for this service. @return A {@code ServiceRegistration} object for use by the moduleregistering the service to update the service's properties or to unregister the service. @throws IllegalStateException If this ModuleContext is no longer valid. @see #registerService(String,Object,Dictionary)
A bundle can register a service object that implements the {@link ServiceFactory} interface to have more flexibility in providingservice objects to other bundles.
The following steps are required to register a service:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|