package org.distributeme.core.routing;
import org.distributeme.core.ClientSideCallContext;
/**
* This router implementation does mostly nothing. That means that it sends the request to the pre-configured service without ever modifying the serviceId.
* The main purpose of this router is testing.
*
* @author lrosenberg.
* @version $Id: $Id
*/
public class NoOpRouter extends AbstractRouter implements Router{
/** {@inheritDoc} */
@Override
public String getServiceIdForCall(ClientSideCallContext context) {
return context.getServiceId();
}
/** {@inheritDoc} */
@Override
public void customize(String parameter) {
//do nothing
}
}