com.ibm.wbiserverspi.mediation

Class JavaMediation

  1. java.lang.Object
  2. extended bycom.ibm.wbiserverspi.mediation.JavaMediation

  1. public abstract class JavaMediation
  2. extends java.lang.Object
This class is implemented by Java Snippets that are called by Interface Mediation components configured to mediate Java interfaces.

An Interface Mediation component will call this class to perform mediation of a particular parameter in an interface. This is used for any parameters that are mediated (for example, Java interfaces).


Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Constructor Summary

Constructor and Description
JavaMediation()

Method Summary

Modifier and Type Method and Description
  1. com.ibm.wbiserver.relationshipservice.common.ExecutionContext
getContext()
  1. abstract
  2. java.lang.Object
mediate(java.lang.Object parameter)
This method should mediate a particular parameter in whatever user-defined manner is needed.
  1. void
setContext(com.ibm.wbiserver.relationshipservice.common.ExecutionContext arg0)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

JavaMediation

  1. public JavaMediation()

Method Detail

mediate

  1. public abstract java.lang.Object mediate( java.lang.Object parameter)
  2. throws MediateException
This method should mediate a particular parameter in whatever user-defined manner is needed. It returns the mediated parameter.

Sample code:

 public Object mediate(Object arg0) throws MediateException {
     String output = arg0.toString();
     return output;
 }
 
Parameters:
parameter - the parameter to mediate
Returns:
Object the mediated parameter
Throws:

getContext

  1. public com.ibm.wbiserver.relationshipservice.common.ExecutionContext getContext( )

setContext

  1. public void setContext(com.ibm.wbiserver.relationshipservice.common.ExecutionContext arg0)