The Class Mediator creates an instance of a custom-specified class and sets it as a mediator. The class must implement the org.apache.synapse.api.Mediator
interface. If any properties are specified, the corresponding setter methods are invoked once on the class during initialization.
Excerpt | ||
---|---|---|
| ||
The following best practices are from the following FAQ: http://docs.wso2.org/wiki/display/FAQ/Mediators#Mediators-ClassCustom. If you make changes to the content here, be sure to update it there as well. |
Use The Class mediator is a custom Java class, which you need to maintain by yourself. Therefore, it is recommended to use the Class mediator only for not frequently re-used custom developments and very user-specific , custom developments only when scenarios, for which, there is no built-in mediator that already provides the required functionality. Maintaining custom classes incurs a high overhead. Therefore avoid using them unless the scenario is frequently re-used and very user-specific. Your
Your class mediator might not be picked up and updated, if you use an existing package when creating it.
...