|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.webservice.runtime.CorbaTransformationUtils
public class CorbaTransformationUtils
This class provides utility functions to transform objects from jax-ws objects to Corba objects and vice-a-versa
Constructor Summary | |
---|---|
CorbaTransformationUtils()
|
Method Summary | |
---|---|
static Object |
changeFromCorbaToServiceObject(Object corbaObject,
RuntimeInformation runtimeInfo,
Class objectType)
changeFromCorbaToServiceObjects - Transform Corba objects to jax-ws objects in operation return type and exceptions |
static Object[] |
changeFromCorbaToServiceObjects(Object[] corbaParams,
RuntimeInformation runtimeInfo,
MethodSignature methodSignature)
recursiveInvokationAdapter - Transform jax-ws objects to Corba objects in operation parameters |
static Object |
changeFromServiceToCorbaObject(Object serviceObject,
RuntimeInformation runtimeInfo,
Class objectType)
changeFromCorbaToServiceObjects - Transform Corba objects to jax-ws objects in operation return type and exceptions |
static Object[] |
changeFromServiceToCorbaObjects(Object[] serviceParams,
RuntimeInformation runtimeInfo,
MethodSignature methodSignature)
recursiveInvokationAdapter - Transform jax-ws objects to Corba objects in operation parameters |
static void |
changeHoldersFromCorbaToServiceObjects(MethodSignature methodSignature,
List<Object> params,
Object[] paramArrayAfterInvocation,
RuntimeInformation runtimeInfo)
Change the Holder params after the servant invocation. |
static Object[] |
changeHoldersFromServiceToCorbaObjects(MethodSignature methodSignature,
List<Object> params,
RuntimeInformation runtimeInfo)
Change the Holder params for the correct servant invocation. |
static int |
delinearizeArray(Object[] objects,
Object myArray,
int actualElement)
Returns a multidimentional array from a linearized Object, see CRB-214. |
static MethodSignature |
getMetodSignatureFromMethod(Method method,
List<MethodSignature> methodSignatures)
Gets the MethodSignature object from the Method
class. |
static Any |
transformToAny(Object serviceObject,
Any any,
RuntimeInformation runtimeInfo)
* transformToAny - Transform jax-ws objects to Corba objects (Any type) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CorbaTransformationUtils()
Method Detail |
---|
public static Object changeFromCorbaToServiceObject(Object corbaObject, RuntimeInformation runtimeInfo, Class objectType) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException
corbaObject
- runtimeInfo
- objectType
-
SecurityException
IllegalArgumentException
ClassNotFoundException
NoSuchFieldException
IllegalAccessException
InvocationTargetException
InstantiationException
NoSuchMethodException
public static Object[] changeFromServiceToCorbaObjects(Object[] serviceParams, RuntimeInformation runtimeInfo, MethodSignature methodSignature) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SecurityException, NoSuchFieldException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
serviceParams
- runtimeInfo
- methodSignature
-
ClassNotFoundException
InstantiationException
IllegalAccessException
SecurityException
NoSuchFieldException
IllegalArgumentException
InvocationTargetException
NoSuchMethodException
public static Object[] changeFromCorbaToServiceObjects(Object[] corbaParams, RuntimeInformation runtimeInfo, MethodSignature methodSignature) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SecurityException, NoSuchFieldException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
corbaParams
- runtimeInfo
- methodSignature
-
ClassNotFoundException
InstantiationException
IllegalAccessException
SecurityException
NoSuchFieldException
IllegalArgumentException
InvocationTargetException
NoSuchMethodException
public static Object changeFromServiceToCorbaObject(Object serviceObject, RuntimeInformation runtimeInfo, Class objectType) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException
res
- runtimeInfo
- objectType
-
SecurityException
IllegalArgumentException
ClassNotFoundException
NoSuchFieldException
IllegalAccessException
InvocationTargetException
InstantiationException
NoSuchMethodException
public static Object[] changeHoldersFromServiceToCorbaObjects(MethodSignature methodSignature, List<Object> params, RuntimeInformation runtimeInfo) throws InstantiationException, IllegalAccessException, SecurityException, NoSuchFieldException, ClassNotFoundException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
methodSignature
- params
- runtimeInfo
-
InstantiationException
IllegalAccessException
SecurityException
NoSuchFieldException
ClassNotFoundException
IllegalArgumentException
InvocationTargetException
NoSuchMethodException
public static void changeHoldersFromCorbaToServiceObjects(MethodSignature methodSignature, List<Object> params, Object[] paramArrayAfterInvocation, RuntimeInformation runtimeInfo) throws InstantiationException, IllegalAccessException, SecurityException, NoSuchFieldException, IllegalArgumentException, ClassNotFoundException, InvocationTargetException, NoSuchMethodException
changeHolderParamsBeforeServantInvocation
: get
the Corba holder values and set it into the
javax.xml.ws.Holder
params elements.
methodSignature
- params
- paramArrayAfterInvocation
- runtimeInfo
-
InstantiationException
IllegalAccessException
SecurityException
NoSuchFieldException
IllegalArgumentException
ClassNotFoundException
InvocationTargetException
NoSuchMethodException
public static Any transformToAny(Object serviceObject, Any any, RuntimeInformation runtimeInfo) throws ClassNotFoundException, SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InstantiationException
serviceObject
- any
- runtimeInfo
-
ClassNotFoundException
SecurityException
IllegalArgumentException
NoSuchFieldException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
InstantiationException
public static MethodSignature getMetodSignatureFromMethod(Method method, List<MethodSignature> methodSignatures)
MethodSignature
object from the Method
class. The correspondace between the MethodSignature and the method can
be saved for further optimization.
method
-
public static int delinearizeArray(Object[] objects, Object myArray, int actualElement)
objects
- dimentions
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |