IBM WebSphere Application ServerTM
Release 8

com.ibm.wsspi.sibx.mediation
Class AbstractMediation

java.lang.Object
  extended by com.ibm.wsspi.sibx.mediation.AbstractMediation
All Implemented Interfaces:
Mediation
Direct Known Subclasses:
ESBMediationPrimitive

public abstract class AbstractMediation
extends java.lang.Object
implements Mediation

Convenient abstract class for mediation primitive implementors. This provides an implementation of the setMediationServices and init methods of the Mediation interface. The init method simply provides a no-op implementation which mediation primitive programmers may override to perform initialization.

This class also provides a getMediationServices method to allow access to the mediation services set by the engine.

At a minimum, extenders of this class must implement the mediate method of the Mediation interface.


Field Summary
static java.lang.String $sccsid
           
static java.lang.String COPYRIGHT
           
 
Constructor Summary
protected AbstractMediation()
          Explicitly defined protected default constructor.
 
Method Summary
 MediationServices getMediationServices()
          Gets the mediation services for this mediation primitive.
 void init()
          Basic no-op implementation of init.
 void setMediationServices(MediationServices mediationServices)
          Sets the mediation services for this mediation primitive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.wsspi.sibx.mediation.Mediation
mediate
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

$sccsid

public static final java.lang.String $sccsid
See Also:
Constant Field Values
Constructor Detail

AbstractMediation

protected AbstractMediation()
Explicitly defined protected default constructor.

Method Detail

setMediationServices

public final void setMediationServices(MediationServices mediationServices)
Sets the mediation services for this mediation primitive.

Specified by:
setMediationServices in interface Mediation
Parameters:
mediationServices - the mediation services object
See Also:
Mediation.setMediationServices(com.ibm.wsspi.sibx.mediation.MediationServices)

getMediationServices

public final MediationServices getMediationServices()
Gets the mediation services for this mediation primitive.

Returns:
the mediation services

init

public void init()
          throws MediationConfigurationException
Basic no-op implementation of init. Should be overridden to provide customised initialization.

Specified by:
init in interface Mediation
Throws:
MediationConfigurationException - if any configuration problems occur in the initialization of this mediation primitive.
See Also:
Mediation.init()

IBM WebSphere Application ServerTM
Release 8