KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jbi > component > ComponentContext


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * 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 JavaDoc;
20 import java.util.logging.Logger JavaDoc;
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 JavaDoc;
28
29 import org.w3c.dom.Document JavaDoc;
30 import org.w3c.dom.DocumentFragment JavaDoc;
31
32 public interface ComponentContext
33 {
34     ServiceEndpoint activateEndpoint(QName JavaDoc serviceName, String JavaDoc 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 JavaDoc epr);
47
48     String JavaDoc getComponentName();
49
50     DeliveryChannel getDeliveryChannel()
51         throws MessagingException;
52
53     ServiceEndpoint getEndpoint(QName JavaDoc service, String JavaDoc name);
54
55     Document JavaDoc getEndpointDescriptor(ServiceEndpoint endpoint)
56         throws JBIException;
57
58     ServiceEndpoint[] getEndpoints(QName JavaDoc interfaceName);
59
60     ServiceEndpoint[] getEndpointsForService(QName JavaDoc serviceName);
61
62     ServiceEndpoint[] getExternalEndpoints(QName JavaDoc interfaceName);
63
64     ServiceEndpoint[] getExternalEndpointsForService(QName JavaDoc serviceName);
65
66     String JavaDoc getInstallRoot();
67
68     Logger JavaDoc getLogger(String JavaDoc suffix, String JavaDoc resourceBundleName)
69         throws MissingResourceException JavaDoc, JBIException;
70
71     javax.jbi.management.MBeanNames getMBeanNames();
72
73     javax.management.MBeanServer JavaDoc getMBeanServer();
74
75     javax.naming.InitialContext JavaDoc getNamingContext();
76
77     Object JavaDoc getTransactionManager();
78
79     String JavaDoc getWorkspaceRoot();
80
81 }
82
Popular Tags