[jboss-cvs] JBossAS SVN: r59312 - in trunk: system/src/main/org/jboss/system/server system-jmx/src/main/org/jboss/system/server
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jan 3 12:42:37 EST 2007
Author: thomas.diesler at jboss.com
Date: 2007-01-03 12:42:32 -0500 (Wed, 03 Jan 2007)
New Revision: 59312
Modified:
trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImpl.java
trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImplMBean.java
trunk/system/src/main/org/jboss/system/server/BaseServerConfig.java
trunk/system/src/main/org/jboss/system/server/ServerConfig.java
Log:
add specification/implementation title/version from the manifest
Modified: trunk/system/src/main/org/jboss/system/server/BaseServerConfig.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/BaseServerConfig.java 2007-01-03 14:27:56 UTC (rev 59311)
+++ trunk/system/src/main/org/jboss/system/server/BaseServerConfig.java 2007-01-03 17:42:32 UTC (rev 59312)
@@ -74,6 +74,11 @@
*/
private Object patchURL;
+ private String serverSpecificationTitle;
+ private String serverSpecificationVersion;
+ private String serverImplementationTitle;
+ private String serverImplementationVersion;
+
private String serverName;
private File serverBaseDir;
private File serverHomeDir;
@@ -111,6 +116,12 @@
System.setProperty(ServerConfig.HOME_DIR, homeDir.toString());
// Setup the SERVER_HOME_DIR system property
getServerHomeDir();
+
+ Package thisPackage = getClass().getPackage();
+ serverSpecificationTitle = thisPackage.getSpecificationTitle();
+ serverSpecificationVersion = thisPackage.getSpecificationVersion();
+ serverImplementationTitle = thisPackage.getImplementationTitle();
+ serverImplementationVersion = thisPackage.getImplementationVersion();
}
/** Breakout the initialization of URLs from the constructor as we need
@@ -674,5 +685,32 @@
return null;
}
+
+ /** Get the server Implementation-Title
+ */
+ public String getImplementationTitle()
+ {
+ return serverImplementationTitle;
+ }
+
+ /** Get the server Implementation-Version
+ */
+ public String getImplementationVersion()
+ {
+ return serverImplementationVersion;
+ }
+
+ /** Get the server Specification-Title
+ */
+ public String getSpecificationTitle()
+ {
+ return serverSpecificationTitle;
+ }
+
+ /** Get the server Specification-Version
+ */
+ public String getSpecificationVersion()
+ {
+ return serverSpecificationVersion;
+ }
}
-
Modified: trunk/system/src/main/org/jboss/system/server/ServerConfig.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/ServerConfig.java 2007-01-03 14:27:56 UTC (rev 59311)
+++ trunk/system/src/main/org/jboss/system/server/ServerConfig.java 2007-01-03 17:42:32 UTC (rev 59312)
@@ -34,7 +34,7 @@
* @author Scott.Stark at jboss.org
* @version $Revision$
*/
- public interface ServerConfig
+public interface ServerConfig
{
/** The default partition name */
@@ -487,12 +487,32 @@
*
* @return the directory
*/
- public File getServerNativeDir();
+ File getServerNativeDir();
/**
* Get the temporary deployment dir for unpacking
*
* @return the directory
*/
- public File getServerTempDeployDir();
+ File getServerTempDeployDir();
+
+ /**
+ * Get the server Implementation-Title
+ */
+ String getImplementationTitle();
+
+ /**
+ * Get the server Implementation-Version
+ */
+ String getImplementationVersion();
+
+ /**
+ * Get the server Specification-Title
+ */
+ String getSpecificationTitle();
+
+ /**
+ * Get the server Specification-Version
+ */
+ String getSpecificationVersion();
}
Modified: trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImpl.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImpl.java 2007-01-03 14:27:56 UTC (rev 59311)
+++ trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImpl.java 2007-01-03 17:42:32 UTC (rev 59312)
@@ -187,4 +187,23 @@
config.setRootDeploymentFilename(filename);
}
+ public String getImplementationTitle()
+ {
+ return config.getImplementationTitle();
+ }
+
+ public String getImplementationVersion()
+ {
+ return config.getImplementationVersion();
+ }
+
+ public String getSpecificationTitle()
+ {
+ return config.getSpecificationTitle();
+ }
+
+ public String getSpecificationVersion()
+ {
+ return config.getSpecificationVersion();
+ }
}
Modified: trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImplMBean.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImplMBean.java 2007-01-03 14:27:56 UTC (rev 59311)
+++ trunk/system-jmx/src/main/org/jboss/system/server/ServerConfigImplMBean.java 2007-01-03 17:42:32 UTC (rev 59312)
@@ -38,6 +38,26 @@
ObjectNameFactory.create("jboss.system:type=ServerConfig");
/**
+ * Get the server Implementation-Title
+ */
+ String getImplementationTitle();
+
+ /**
+ * Get the server Implementation-Version
+ */
+ String getImplementationVersion();
+
+ /**
+ * Get the server Specification-Title
+ */
+ String getSpecificationTitle();
+
+ /**
+ * Get the server Specification-Version
+ */
+ String getSpecificationVersion();
+
+ /**
* Get the local home directory which the server is running from.
*/
File getHomeDir();
More information about the jboss-cvs-commits
mailing list