1 22 package org.objectweb.petals.jbi.routing.mock; 23 24 import org.objectweb.petals.jbi.component.context.ComponentContextImpl; 25 import org.objectweb.petals.jbi.management.service.EndpointService; 26 import org.objectweb.petals.jbi.messaging.MessageExchangeImpl; 27 import org.objectweb.petals.jbi.routing.AddressResolver; 28 import org.objectweb.petals.jbi.routing.RoutingException; 29 30 35 public class MockAddressResolver extends AddressResolver { 36 37 public MockAddressResolver(EndpointService endpointService) { 38 super(endpointService); 39 } 40 41 private boolean resolveAddress; 42 43 public void resolveAddress(ComponentContextImpl source, 44 MessageExchangeImpl exchange) throws RoutingException { 45 resolveAddress = true; 46 } 47 48 public boolean isResolveAddress() { 49 return resolveAddress; 50 } 51 52 public void setResolveAddress(boolean resolveAddress) { 53 this.resolveAddress = resolveAddress; 54 } 55 56 } 57 | Popular Tags |