1 22 package org.objectweb.petals.demo.mortgage.gui.mock; 23 24 import java.util.MissingResourceException ; 25 import java.util.logging.Logger ; 26 27 import javax.jbi.JBIException; 28 import javax.jbi.component.ComponentContext; 29 import javax.jbi.management.MBeanNames; 30 import javax.jbi.messaging.DeliveryChannel; 31 import javax.jbi.messaging.MessagingException; 32 import javax.jbi.servicedesc.ServiceEndpoint; 33 import javax.management.MBeanServer ; 34 import javax.naming.InitialContext ; 35 import javax.xml.namespace.QName ; 36 37 import org.w3c.dom.Document ; 38 import org.w3c.dom.DocumentFragment ; 39 40 45 public class ComponentContextMock implements ComponentContext { 46 47 public ServiceEndpoint activateEndpoint(QName serviceName, 48 String endpointName) throws JBIException { 49 return null; 50 } 51 52 public void deactivateEndpoint(ServiceEndpoint endpoint) 53 throws JBIException { 54 } 55 56 public void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint) 57 throws JBIException { 58 } 59 60 public String getComponentName() { 61 return null; 62 } 63 64 public DeliveryChannel getDeliveryChannel() throws MessagingException { 65 return deliveryChannel; 66 } 67 68 private DeliveryChannel deliveryChannel; 69 70 public void setDeliveryChannel(DeliveryChannel deliveryChannel) { 71 this.deliveryChannel = deliveryChannel; 72 } 73 74 public ServiceEndpoint getEndpoint(QName service, String name) { 75 return null; 76 } 77 78 public Document getEndpointDescriptor(ServiceEndpoint endpoint) 79 throws JBIException { 80 return null; 81 } 82 83 public ServiceEndpoint[] getEndpoints(QName interfaceName) { 84 return null; 85 } 86 87 public ServiceEndpoint[] getEndpointsForService(QName serviceName) { 88 return null; 89 } 90 91 public ServiceEndpoint[] getExternalEndpoints(QName interfaceName) { 92 return null; 93 } 94 95 public ServiceEndpoint[] getExternalEndpointsForService(QName serviceName) { 96 return null; 97 } 98 99 public String getInstallRoot() { 100 return null; 101 } 102 103 public Logger getLogger(String suffix, String resourceBundleName) 104 throws MissingResourceException , JBIException { 105 return null; 106 } 107 108 public MBeanNames getMBeanNames() { 109 return null; 110 } 111 112 public MBeanServer getMBeanServer() { 113 return null; 114 } 115 116 public InitialContext getNamingContext() { 117 return null; 118 } 119 120 public Object getTransactionManager() { 121 return null; 122 } 123 124 public String getWorkspaceRoot() { 125 return null; 126 } 127 128 public void registerExternalEndpoint(ServiceEndpoint externalEndpoint) 129 throws JBIException { 130 } 131 132 public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { 133 return null; 134 } 135 136 } 137 | Popular Tags |