org.jboss.wise.core.client.impl.reflection
Class InvocationResultImpl

java.lang.Object
  extended by org.jboss.wise.core.client.impl.reflection.InvocationResultImpl
All Implemented Interfaces:
InvocationResult

@Immutable
@ThreadSafe
public class InvocationResultImpl
extends java.lang.Object
implements InvocationResult

Holds the webservice's invocation result's data. Can apply a mapping to custom object using a WiseMapper passed to getMappedResult(WiseMapper,Map) methods

Author:
stefano.maestri@javalinux.it

Constructor Summary
InvocationResultImpl(java.lang.String name, java.lang.Object value, java.util.Map<java.lang.String,java.lang.Object> results)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getMappedResult(WiseMapper mapper, java.util.Map<java.lang.String,java.lang.Object> inputMap)
          Apply WiseMapper provided with to returned Object as defined in wsdl/wiseconsume generated objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationResultImpl

public InvocationResultImpl(java.lang.String name,
                            java.lang.Object value,
                            java.util.Map<java.lang.String,java.lang.Object> results)
Parameters:
name -
value -
results -
Method Detail

getMappedResult

public java.util.Map<java.lang.String,java.lang.Object> getMappedResult(WiseMapper mapper,
                                                                        java.util.Map<java.lang.String,java.lang.Object> inputMap)
                                                                 throws MappingException
Apply WiseMapper provided with to returned Object as defined in wsdl/wiseconsume generated objects

Specified by:
getMappedResult in interface InvocationResult
Parameters:
mapper - a WiseMapper used to map JAX-WS generated object returned by method call to arbitrary custom object model
inputMap - It's the map of input object used to give them together with output. It's useful when they are needed by wise's client in same classLoader used by smooks (i.e when wise is used to enrich set of objects like in ESB action pipeline)
Returns:
a Map containing the result od ws calls eventually remapped using WiseMapper provided
Throws:
MappingException