no.ubicollab.osgi
Class DynamicProxyGenerator

java.lang.Object
  extended by no.ubicollab.osgi.DynamicProxyGenerator

public class DynamicProxyGenerator
extends java.lang.Object

Class for generating webservice proxy classes to plugins at runtime

Author:
Andreas Brustad

Constructor Summary
DynamicProxyGenerator()
           
 
Method Summary
 PositioningPluginService getProxy(java.lang.String wsdlUrl)
          Generates proxyclasses to webservices that implement the PositioningPluginService interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicProxyGenerator

public DynamicProxyGenerator()
Method Detail

getProxy

public PositioningPluginService getProxy(java.lang.String wsdlUrl)
Generates proxyclasses to webservices that implement the PositioningPluginService interface. The method checks for the double[] getPosition(String) -method in the wsdl description. If found, a proxy is generated to this webservice.

Parameters:
wsdlUrl - The url to the wsdl description of the plugin webservice
Returns:
A proxy that can be used to invoke the webservice methods of the plugin, or null if the webservice does not implement the PositioningPluginService interface.