KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > engine > AxisConfiguration


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.axis2.engine;
17
18 import org.apache.axis2.description.*;
19
20 import javax.xml.namespace.QName JavaDoc;
21 import java.util.ArrayList JavaDoc;
22 import java.util.HashMap JavaDoc;
23 import java.util.Hashtable JavaDoc;
24
25 /**
26  * The palce where all the Global states of Axis is kept.
27  * All the Global states kept in the <code>EngineRegistry</code> and all the
28  * Service states kept in the <code>MessageContext</code>. Other runtime
29  * artifacts does not keep states foward from the execution.
30  */

31 public interface AxisConfiguration extends ParameterInclude{
32     /**
33      * Field INFLOW
34      */

35     public static final int INFLOW = 10003;
36
37     /**
38      * Field OUTFLOW
39      */

40     public static final int OUTFLOW = 10004;
41
42     /**
43      * Field FAULT_IN_FLOW
44      */

45     public static final int FAULT_IN_FLOW = 10005;
46
47     public static final int FAULT_OUT_FLOW = 10006;
48
49     /**
50      * Method getService
51      *
52      * @param name
53      * @return
54      * @throws AxisFault
55      */

56     public ServiceDescription getService(QName JavaDoc name) throws AxisFault;
57
58     /**
59      * Method addService
60      *
61      * @param service
62      * @throws AxisFault
63      */

64     public void addService(ServiceDescription service) throws AxisFault;
65
66     /**
67      * Method removeService
68      *
69      * @param name
70      * @throws AxisFault
71      */

72     public void removeService(QName JavaDoc name) throws AxisFault;
73
74     /**
75      * Modules is read only as they can not deployed while runing
76      *
77      * @param name
78      * @return
79      * @throws AxisFault
80      */

81     public ModuleDescription getModule(QName JavaDoc name) throws AxisFault;
82
83     /**
84      * Method addMdoule
85      *
86      * @param module
87      * @throws AxisFault
88      */

89     public void addMdoule(ModuleDescription module) throws AxisFault;
90     
91     public boolean isEngaged(QName JavaDoc moduleName);
92
93      /**
94       * To engage a module at the run time it can be used this method
95       * @param moduleref
96       * @throws AxisFault
97       */

98      public void engageModule(QName JavaDoc moduleref) throws AxisFault ;
99
100
101     /**
102      * This returns
103      */

104     public ArrayList JavaDoc getInPhasesUptoAndIncludingPostDispatch();
105
106     public ArrayList JavaDoc getInFaultFlow();
107     /**
108      * Method getServices
109      *
110      * @return
111      */

112     public HashMap JavaDoc getServices();
113
114     public Hashtable JavaDoc getFaulytServices();
115     public Hashtable JavaDoc getFaulytModules();
116
117     public TransportInDescription getTransportIn(QName JavaDoc name) throws AxisFault;
118     public void addTransportIn(TransportInDescription transport) throws AxisFault;
119     public TransportOutDescription getTransportOut(QName JavaDoc name) throws AxisFault;
120     public void addTransportOut(TransportOutDescription transport) throws AxisFault;
121     public HashMap JavaDoc getTransportsIn();
122     public HashMap JavaDoc getTransportsOut();
123
124 }
125
Popular Tags