it.imolinfo.jbi4corba.webservice.runtime
Class ProviderServiceInvoker

java.lang.Object
  extended by org.apache.cxf.service.invoker.AbstractInvoker
      extended by it.imolinfo.jbi4corba.webservice.runtime.ProviderServiceInvoker
All Implemented Interfaces:
org.apache.cxf.service.invoker.Invoker

public final class ProviderServiceInvoker
extends org.apache.cxf.service.invoker.AbstractInvoker

This class handle invokation of web services and forward in to a legacy service invokation.


Constructor Summary
ProviderServiceInvoker(ProviderServiceDescriptor serviceDescriptor)
          Constructor.
ProviderServiceInvoker(ProviderServiceDescriptor serviceDescriptor, boolean isCorbaServant)
          Constructor.
 
Method Summary
 Method getMethodFromStub(Class stub, MethodSignature signature)
          The method saved in the MethodSignature is of the corba interface.
 ProviderServiceDescriptor getServiceDescriptor()
          Get the provider service Descriptor object.
 Object getServiceObject(org.apache.cxf.message.Exchange context)
          Creates and returns a service object depending on the scope.
 Object invoke(org.apache.cxf.message.Exchange exchange, Object o)
          Sets ths classloader to find the corba classes and invokes the superclass.
 void setServiceDescriptor(ProviderServiceDescriptor serviceDescriptor)
          Set the provider service Descriptor object.
 void setServiceObject(Object obj)
          Set the service object for testing pourpose
 
Methods inherited from class org.apache.cxf.service.invoker.AbstractInvoker
checkSuspendedInvocation, createFault, getMostSpecificMethod, insertExchange, invoke, isJdkDynamicProxy, performInvocation, releaseServiceObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderServiceInvoker

public ProviderServiceInvoker(ProviderServiceDescriptor serviceDescriptor)
Constructor.

Parameters:
serviceDescriptor - The service descriptor

ProviderServiceInvoker

public ProviderServiceInvoker(ProviderServiceDescriptor serviceDescriptor,
                              boolean isCorbaServant)
Constructor.

Parameters:
serviceDescriptor - The service descriptor
Method Detail

getServiceObject

public Object getServiceObject(org.apache.cxf.message.Exchange context)
Creates and returns a service object depending on the scope.

Specified by:
getServiceObject in class org.apache.cxf.service.invoker.AbstractInvoker

setServiceObject

public void setServiceObject(Object obj)
Set the service object for testing pourpose


invoke

public Object invoke(org.apache.cxf.message.Exchange exchange,
                     Object o)
Sets ths classloader to find the corba classes and invokes the superclass.

Specified by:
invoke in interface org.apache.cxf.service.invoker.Invoker
Overrides:
invoke in class org.apache.cxf.service.invoker.AbstractInvoker

getServiceDescriptor

public ProviderServiceDescriptor getServiceDescriptor()
Get the provider service Descriptor object.

Returns:
The provider service descriptor

setServiceDescriptor

public void setServiceDescriptor(ProviderServiceDescriptor serviceDescriptor)
Set the provider service Descriptor object.

Parameters:
serviceDescriptor - The ProviderServiceDescriptor

getMethodFromStub

public Method getMethodFromStub(Class stub,
                                MethodSignature signature)
The method saved in the MethodSignature is of the corba interface. The object used to invoke the method is the Stub reference. This method found the Stub method, comparing the method name and the parameter types. TODO: This operation is expensive, the correspondance between methods can be saved.

Parameters:
stub -
signature -
Returns:


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.