KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > system > server > ServerConfigImpl


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.system.server;
23
24 import java.io.File JavaDoc;
25 import java.net.URL JavaDoc;
26
27 /**
28  * An mbean wrapper for the BaseServerConfig that exposes the config as the
29  * legacy ServerConfigImplMBean.
30  *
31  * @author Scott.Stark@jboss.org
32  * @version $Revision: 57108 $
33  */

34 public class ServerConfigImpl
35       implements ServerConfigImplMBean
36 {
37    private ServerConfig config;
38
39    /**
40     * Construct a ServerConfigImpl with the ServerConfig pojo which will be used
41     * as the delegate for the ServerConfigImplMBean ops.
42     *
43     * @param config - the ServerConfig pojo to expose as a ServerConfigImplMBean
44     */

45    public ServerConfigImpl(ServerConfig config)
46    {
47       this.config = config;
48    }
49
50    public ServerConfig getConfig()
51    {
52       return config;
53    }
54
55    public boolean equals(Object JavaDoc obj)
56    {
57       return config.equals(obj);
58    }
59
60    public boolean getBlockingShutdown()
61    {
62       return config.getBlockingShutdown();
63    }
64
65    public boolean getExitOnShutdown()
66    {
67       return config.getExitOnShutdown();
68    }
69
70    public File JavaDoc getHomeDir()
71    {
72       return config.getHomeDir();
73    }
74
75    public URL JavaDoc getHomeURL()
76    {
77       return config.getHomeURL();
78    }
79
80    public URL JavaDoc getLibraryURL()
81    {
82       return config.getLibraryURL();
83    }
84
85    public URL JavaDoc getPatchURL()
86    {
87       return config.getPatchURL();
88    }
89
90    public boolean getPlatformMBeanServer()
91    {
92       return config.getPlatformMBeanServer();
93    }
94
95    public boolean getRequireJBossURLStreamHandlerFactory()
96    {
97       return config.getRequireJBossURLStreamHandlerFactory();
98    }
99
100    public String JavaDoc getRootDeploymentFilename()
101    {
102       return config.getRootDeploymentFilename();
103    }
104
105    public File JavaDoc getServerBaseDir()
106    {
107       return config.getServerBaseDir();
108    }
109
110    public URL JavaDoc getServerBaseURL()
111    {
112       return config.getServerBaseURL();
113    }
114
115    public URL JavaDoc getServerConfigURL()
116    {
117       return config.getServerConfigURL();
118    }
119
120    public File JavaDoc getServerDataDir()
121    {
122       return config.getServerDataDir();
123    }
124
125    public File JavaDoc getServerHomeDir()
126    {
127       return config.getServerHomeDir();
128    }
129
130    public URL JavaDoc getServerHomeURL()
131    {
132       return config.getServerHomeURL();
133    }
134
135    public URL JavaDoc getServerLibraryURL()
136    {
137       return config.getServerLibraryURL();
138    }
139
140    public File JavaDoc getServerLogDir()
141    {
142       return config.getServerLogDir();
143    }
144
145    public String JavaDoc getServerName()
146    {
147       return config.getServerName();
148    }
149
150    public File JavaDoc getServerNativeDir()
151    {
152       return config.getServerNativeDir();
153    }
154
155    public File JavaDoc getServerTempDeployDir()
156    {
157       return config.getServerTempDeployDir();
158    }
159
160    public File JavaDoc getServerTempDir()
161    {
162       return config.getServerTempDir();
163    }
164
165    public int hashCode()
166    {
167       return config.hashCode();
168    }
169
170    public void setBlockingShutdown(boolean flag)
171    {
172       config.setBlockingShutdown(flag);
173    }
174
175    public void setExitOnShutdown(boolean flag)
176    {
177       config.setExitOnShutdown(flag);
178    }
179
180    public void setRequireJBossURLStreamHandlerFactory(boolean flag)
181    {
182       config.setRequireJBossURLStreamHandlerFactory(flag);
183    }
184
185    public void setRootDeploymentFilename(String JavaDoc filename)
186    {
187       config.setRootDeploymentFilename(filename);
188    }
189
190 }
191
Popular Tags