01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
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: ServiceEndpoint activateEndpoint(QName serviceName,
34: String endpointName) throws JBIException;
35:
36: void deactivateEndpoint(ServiceEndpoint endpoint)
37: throws JBIException;
38:
39: void registerExternalEndpoint(ServiceEndpoint externalEndpoint)
40: throws JBIException;
41:
42: void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint)
43: throws JBIException;
44:
45: ServiceEndpoint resolveEndpointReference(DocumentFragment epr);
46:
47: String getComponentName();
48:
49: DeliveryChannel getDeliveryChannel() throws MessagingException;
50:
51: ServiceEndpoint getEndpoint(QName service, String name);
52:
53: Document getEndpointDescriptor(ServiceEndpoint endpoint)
54: throws JBIException;
55:
56: ServiceEndpoint[] getEndpoints(QName interfaceName);
57:
58: ServiceEndpoint[] getEndpointsForService(QName serviceName);
59:
60: ServiceEndpoint[] getExternalEndpoints(QName interfaceName);
61:
62: ServiceEndpoint[] getExternalEndpointsForService(QName serviceName);
63:
64: String getInstallRoot();
65:
66: Logger getLogger(String suffix, String resourceBundleName)
67: throws MissingResourceException, JBIException;
68:
69: javax.jbi.management.MBeanNames getMBeanNames();
70:
71: javax.management.MBeanServer getMBeanServer();
72:
73: javax.naming.InitialContext getNamingContext();
74:
75: Object getTransactionManager();
76:
77: String getWorkspaceRoot();
78:
79: }
|