|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectServiceTracker
org.eclipse.smila.webservice.WebservicePublisher
public class WebservicePublisher
Tracks services with property org.eclipse.smila.ws
and tries to publish them as a JAX-WS webservice. The
value of the property gives the webservice name. The publisher does not check if the service implementor is really a
JAX-WS service implementor (i.e. has the correct annotations and such), but leaves this to JAX-WS, so you will get
JAX-WS exceptions when trying to publish services that are not suitable as a webservice.
Some properties are configured in the configuration file webservice.properties. See the bundle for a example
file.
Field Summary | |
---|---|
static java.lang.String |
PROP_WEBSERVICENAME
name of property of tracked services. |
static java.lang.String |
PROPERTY_FILENAME
filename of my config file. |
Constructor Summary | |
---|---|
WebservicePublisher(BundleContext bundleContext)
create instance. |
Method Summary | |
---|---|
java.lang.Object |
addingService(ServiceReference reference)
|
void |
close()
stop the service tracker, stop all published webservices, clean up. |
void |
open()
start the service tracker, read the configuration. |
void |
publishWebservice(ServiceReference reference,
java.lang.Object implementor)
publish a webservice for a tracked service. |
void |
removedService(ServiceReference reference,
java.lang.Object service)
|
void |
stopWebservice(ServiceReference reference)
stop a published webservice. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_WEBSERVICENAME
public static final java.lang.String PROPERTY_FILENAME
Constructor Detail |
---|
public WebservicePublisher(BundleContext bundleContext)
bundleContext
- bundle context.Method Detail |
---|
public void open()
public void close()
public java.lang.Object addingService(ServiceReference reference)
public void removedService(ServiceReference reference, java.lang.Object service)
public void publishWebservice(ServiceReference reference, java.lang.Object implementor)
reference
- service reference for added service.implementor
- service implementor.public void stopWebservice(ServiceReference reference)
reference
- service reference for deactivated service.
|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |