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.messaging.DeliveryChannelImpl; 26 import org.objectweb.petals.jbi.registry.ConsumerEndpoint; 27 28 33 public class MockComponentContext extends ComponentContextImpl { 34 35 private MockDeliveryChannelImpl deliveryChannelImpl; 36 37 public MockComponentContext() { 38 } 39 40 public void setDeliveryChannelImpl( 41 MockDeliveryChannelImpl deliveryChannelImpl) { 42 this.deliveryChannelImpl = deliveryChannelImpl; 43 } 44 45 public DeliveryChannelImpl getDeliveryChannelImpl() { 46 return deliveryChannelImpl; 47 } 48 49 public ConsumerEndpoint getAddress() { 50 return new ConsumerEndpoint("compo", "0"); 51 } 52 53 } 54 | Popular Tags |