1 17 package org.apache.servicemix.jbi.installation; 18 19 import org.w3c.dom.Document ; 20 import org.w3c.dom.DocumentFragment ; 21 22 import javax.jbi.component.Component; 23 import javax.jbi.component.ComponentLifeCycle; 24 import javax.jbi.component.ServiceUnitManager; 25 import javax.jbi.messaging.MessageExchange; 26 import javax.jbi.servicedesc.ServiceEndpoint; 27 28 public class Component1 implements Component { 29 30 private static Component delegate; 31 32 35 public ComponentLifeCycle getLifeCycle() { 36 return delegate.getLifeCycle(); 37 } 38 39 42 public Document getServiceDescription(ServiceEndpoint endpoint) { 43 return delegate.getServiceDescription(endpoint); 44 } 45 46 49 public ServiceUnitManager getServiceUnitManager() { 50 return delegate.getServiceUnitManager(); 51 } 52 53 56 public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange) { 57 return delegate.isExchangeWithConsumerOkay(endpoint, exchange); 58 } 59 60 63 public boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange) { 64 return delegate.isExchangeWithProviderOkay(endpoint, exchange); 65 } 66 67 70 public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { 71 return delegate.resolveEndpointReference(epr); 72 } 73 74 77 public static Component getDelegate() { 78 return delegate; 79 } 80 81 84 public static void setDelegate(Component delegate) { 85 Component1.delegate = delegate; 86 } 87 88 } 89 | Popular Tags |