Hello Dan,

I didn't came to try much of the described yet, but getting to start
with it and just wanted to thank you very much for your very substantial
advice. 

cheers
    Martin

Am Freitag, den 20.08.2010, 23:01 +0200 schrieb Daniel Kulp:
> On Friday 20 August 2010 10:59:18 am loeffelholz wrote:
> > Hello folks,
> > 
> > I'm trying to program a tool that gets an instance of a class that is a
> > description of a service that should be exposed. It doesn't seem that I
> > could use the simple frontend as the class is not the service but just a
> > description of the service. It includes informations about name,
> > inputparameters, types of the results and where to find the correct method
> > to call.
> 
> With just a little "tweeking", you probably could use the Simple frontend.   
> It would involve:
> 
> 1) You would subclass the  AbstractServiceConfiguration and override pretty 
> much everything there that would pull out the information from the instance 
> you are passed.   The param names, types, etc....   This would be registered 
> on the subclass of ReflectionServiceFactoryBean.
> 
> 2) You would subclass ReflectionServiceFactoryBean to override the 
> InterfaceInfo createInterface(ServiceInfo serviceInfo).   The main reason is 
> the call to:
> Method[] methods = getServiceClass().getMethods();
> that is in there.   You would need to get the methods from your object.  
> Thus, 
> take the current code in the createInterface method and just change that line.
> 
> 3) Write a custom invoker for the ServiceFactory that would handle mapping 
> the 
> method to the appropriate instance and invokes.
> 
> Definitely involved, but doable.
> 
> 
> Dan
> 
> 
> 
> 
> > 
> > Does anyone perhaps know how I could get a service out of that at runtime
> > using cxf?
> > 
> > curious regards
> >     Martin
> 


Reply via email to