public class POXMediatorFactory extends AbstractMediatorFactory {
private static final QName POX_Q = new QName(Constants.SYNAPSE_NAMESPACE, "pox");
public Mediator createMediator(OMElement el) {
POXMediator restMediator = new POXMediator();
OMAttribute value = el.getAttribute(new QName(Constants.NULL_NAMESPACE, "value"));
// after successfully creating the mediator
// set its common attributes such as tracing etc
initMediator(restMediator,el);
if (value != null) {
String valueString = value.getAttributeValue();
if (valueString.toLowerCase().equals("true")) {
restMediator.setValue(true);
} else {
restMediator.setValue(false);
}
}
return restMediator;
}