KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > management > jmx > DeploymentAdministrator


1 /*
2  * Copyright 2003,2004 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.axis.management.jmx;
17
18 import org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration;
19 import org.apache.axis.deployment.wsdd.WSDDHandler;
20 import org.apache.axis.management.ServiceAdmin;
21
22 import javax.xml.namespace.QName JavaDoc;
23
24 public class DeploymentAdministrator implements DeploymentAdministratorMBean {
25     public DeploymentAdministrator() {
26     }
27
28     public void saveConfiguration() {
29         ServiceAdmin.saveConfiguration();
30     }
31
32     public void configureGlobalConfig(WSDDGlobalConfiguration config) {
33         ServiceAdmin.setGlobalConfig(config);
34     }
35
36     public void deployHandler(WSDDHandler handler) {
37         ServiceAdmin.deployHandler(handler);
38     }
39
40     public void deployService(WSDDServiceWrapper service) {
41         ServiceAdmin.deployService(service.getWSDDService());
42     }
43
44     public void deployTransport(WSDDTransportWrapper transport) {
45         ServiceAdmin.deployTransport(transport.getWSDDTransport());
46     }
47
48     public void undeployHandler(String JavaDoc qname) {
49         ServiceAdmin.undeployHandler(new QName JavaDoc(qname));
50     }
51
52     public void undeployService(String JavaDoc qname) {
53         ServiceAdmin.undeployService(new QName JavaDoc(qname));
54     }
55
56     public void undeployTransport(String JavaDoc qname) {
57         ServiceAdmin.undeployTransport(new QName JavaDoc(qname));
58     }
59 }
60
Popular Tags