[jboss-cvs] system2/src/main/org/jboss/system/server/profileservice ...
Scott Stark
scott.stark at jboss.com
Fri Jul 14 12:58:52 EDT 2006
User: starksm
Date: 06/07/14 12:58:52
Modified: src/main/org/jboss/system/server/profileservice
ServerImpl.java
Log:
Add a Kernel accessor
Revision Changes Path
1.4 +13 -2 system2/src/main/org/jboss/system/server/profileservice/ServerImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServerImpl.java
===================================================================
RCS file: /cvsroot/jboss/system2/src/main/org/jboss/system/server/profileservice/ServerImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ServerImpl.java 9 Jul 2006 23:48:22 -0000 1.3
+++ ServerImpl.java 14 Jul 2006 16:58:52 -0000 1.4
@@ -29,6 +29,7 @@
import org.jboss.Version;
import org.jboss.deployers.spi.MainDeployer;
+import org.jboss.kernel.Kernel;
import org.jboss.kernel.plugins.deployment.BasicKernelDeployer;
import org.jboss.kernel.spi.event.KernelEvent;
import org.jboss.logging.Logger;
@@ -599,13 +600,23 @@
}
/**
- * @jmx:managed-attribute
+ * The server build date
+ * @return server build date
*/
public String getBuildDate()
{
return version.getBuildDate();
}
+ /**
+ * The server kernel.
+ * @return server kernel.
+ */
+ public Kernel getKernel()
+ {
+ return bootstrap.getKernel();
+ }
+
/** A simple thread that keeps the vm alive in the event there are no
* other threads started.
*/
More information about the jboss-cvs-commits
mailing list