1 package org.objectweb.petals.binding.xquarebc.mock; 2 3 import java.util.MissingResourceException ; 4 import java.util.logging.Logger ; 5 6 import javax.jbi.JBIException; 7 import javax.jbi.component.ComponentContext; 8 import javax.jbi.management.MBeanNames; 9 import javax.jbi.messaging.DeliveryChannel; 10 import javax.jbi.messaging.MessagingException; 11 import javax.jbi.servicedesc.ServiceEndpoint; 12 import javax.management.MBeanServer ; 13 import javax.naming.InitialContext ; 14 import javax.xml.namespace.QName ; 15 16 import org.w3c.dom.Document ; 17 import org.w3c.dom.DocumentFragment ; 18 19 public class MockComponentContext implements ComponentContext { 20 21 public ServiceEndpoint activateEndpoint(QName serviceName, 22 String endpointName) throws JBIException { 23 return null; 24 } 25 26 public void deactivateEndpoint(ServiceEndpoint endpoint) 27 throws JBIException { 28 } 29 30 public void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint) 31 throws JBIException { 32 } 33 34 public String getComponentName() { 35 return null; 36 } 37 38 public DeliveryChannel getDeliveryChannel() throws MessagingException { 39 return null; 40 } 41 42 public ServiceEndpoint getEndpoint(QName service, String name) { 43 return null; 44 } 45 46 public Document getEndpointDescriptor(ServiceEndpoint endpoint) 47 throws JBIException { 48 return null; 49 } 50 51 public ServiceEndpoint[] getEndpoints(QName interfaceName) { 52 return null; 53 } 54 55 public ServiceEndpoint[] getEndpointsForService(QName serviceName) { 56 return null; 57 } 58 59 public ServiceEndpoint[] getExternalEndpoints(QName interfaceName) { 60 return null; 61 } 62 63 public ServiceEndpoint[] getExternalEndpointsForService(QName serviceName) { 64 return null; 65 } 66 67 public String getInstallRoot() { 68 return null; 69 } 70 71 public Logger getLogger(String suffix, String resourceBundleName) 72 throws MissingResourceException , JBIException { 73 return null; 74 } 75 76 public MBeanNames getMBeanNames() { 77 return null; 78 } 79 80 public MBeanServer getMBeanServer() { 81 return null; 82 } 83 84 public InitialContext getNamingContext() { 85 return null; 86 } 87 88 public Object getTransactionManager() { 89 return null; 90 } 91 92 public String getWorkspaceRoot() { 93 return null; 94 } 95 96 public void registerExternalEndpoint(ServiceEndpoint externalEndpoint) 97 throws JBIException { 98 } 99 100 public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { 101 return null; 102 } 103 104 } 105 | Popular Tags |