[jboss-cvs] JBossAS SVN: r59220 - branches/Branch_4_2/system/src/main/org/jboss/system/server
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Dec 23 19:42:56 EST 2006
Author: thomas.diesler at jboss.com
Date: 2006-12-23 19:42:54 -0500 (Sat, 23 Dec 2006)
New Revision: 59220
Modified:
branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImpl.java
branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImplMBean.java
Log:
add specification/implementation title/version from the manifest
Modified: branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImpl.java
===================================================================
--- branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImpl.java 2006-12-24 00:11:36 UTC (rev 59219)
+++ branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImpl.java 2006-12-24 00:42:54 UTC (rev 59220)
@@ -73,6 +73,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;
@@ -83,7 +88,7 @@
private URL serverHomeURL;
private URL serverLibraryURL;
private URL serverConfigURL;
-
+
/** Exit on shutdown flag. */
private Boolean exitOnShutdown;
private Boolean blockingShutdown;
@@ -110,6 +115,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
@@ -131,6 +142,42 @@
/////////////////////////////////////////////////////////////////////////
/**
+ * Get the server Implementation-Title
+ * @jmx:managed-attribute
+ */
+ public String getImplementationTitle()
+ {
+ return serverImplementationTitle;
+ }
+
+ /**
+ * Get the server Implementation-Version
+ * @jmx:managed-attribute
+ */
+ public String getImplementationVersion()
+ {
+ return serverImplementationVersion;
+ }
+
+ /**
+ * Get the server Specification-Title
+ * @jmx:managed-attribute
+ */
+ public String getSpecificationTitle()
+ {
+ return serverSpecificationTitle;
+ }
+
+ /**
+ * Get the server Specification-Version
+ * @jmx:managed-attribute
+ */
+ public String getSpecificationVersion()
+ {
+ return serverSpecificationVersion;
+ }
+
+ /**
* Get the local home directory which the server is running from.
*
* @jmx:managed-attribute
Modified: branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImplMBean.java
===================================================================
--- branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImplMBean.java 2006-12-24 00:11:36 UTC (rev 59219)
+++ branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerConfigImplMBean.java 2006-12-24 00:42:54 UTC (rev 59220)
@@ -32,6 +32,26 @@
.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.
*/
java.io.File getHomeDir();
More information about the jboss-cvs-commits
mailing list