1 17 package javax.jbi.component; 18 19 import java.util.MissingResourceException ; 20 import java.util.logging.Logger ; 21 22 import javax.jbi.JBIException; 23 import javax.jbi.messaging.DeliveryChannel; 24 import javax.jbi.messaging.MessagingException; 25 import javax.jbi.servicedesc.ServiceEndpoint; 26 27 import javax.xml.namespace.QName ; 28 29 import org.w3c.dom.Document ; 30 import org.w3c.dom.DocumentFragment ; 31 32 public interface ComponentContext 33 { 34 ServiceEndpoint activateEndpoint(QName serviceName, String endpointName) 35 throws JBIException; 36 37 void deactivateEndpoint(ServiceEndpoint endpoint) 38 throws JBIException; 39 40 void registerExternalEndpoint(ServiceEndpoint externalEndpoint) 41 throws JBIException; 42 43 void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint) 44 throws JBIException; 45 46 ServiceEndpoint resolveEndpointReference(DocumentFragment epr); 47 48 String getComponentName(); 49 50 DeliveryChannel getDeliveryChannel() 51 throws MessagingException; 52 53 ServiceEndpoint getEndpoint(QName service, String name); 54 55 Document getEndpointDescriptor(ServiceEndpoint endpoint) 56 throws JBIException; 57 58 ServiceEndpoint[] getEndpoints(QName interfaceName); 59 60 ServiceEndpoint[] getEndpointsForService(QName serviceName); 61 62 ServiceEndpoint[] getExternalEndpoints(QName interfaceName); 63 64 ServiceEndpoint[] getExternalEndpointsForService(QName serviceName); 65 66 String getInstallRoot(); 67 68 Logger getLogger(String suffix, String resourceBundleName) 69 throws MissingResourceException , JBIException; 70 71 javax.jbi.management.MBeanNames getMBeanNames(); 72 73 javax.management.MBeanServer getMBeanServer(); 74 75 javax.naming.InitialContext getNamingContext(); 76 77 Object getTransactionManager(); 78 79 String getWorkspaceRoot(); 80 81 } 82 | Popular Tags |