User: d_jencks
Date: 02/03/23 21:35:01
Modified: src/main/org/jboss/deployment SARDeployer.java
Removed: src/main/org/jboss/deployment SARDeployerMBean.java
Log:
Moved mbean xml config processing entirely into ServiceConfigurator and added nested
mbean configuration processing. Made a couple more mbean interfaces xdoclet generated
Revision Changes Path
1.3 +25 -18 jboss-system/src/main/org/jboss/deployment/SARDeployer.java
Index: SARDeployer.java
===================================================================
RCS file:
/cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/SARDeployer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SARDeployer.java 9 Mar 2002 05:23:16 -0000 1.2
+++ SARDeployer.java 24 Mar 2002 05:35:01 -0000 1.3
@@ -69,7 +69,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">David Maplesden</a>
* @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*
* <p><b>20010830 marc fleury:</b>
* <ul>
@@ -105,6 +105,10 @@
* <ul>
* <li>rewrite
* </ul>
+ *
+ * @jmx:mbean name="jboss.system:service=ServiceDeployer"
+ * extends="org.jboss.deployment.DeployerMBean"
+ * extends="org.jboss.system.Service"
*/
public class SARDeployer
extends ServiceMBeanSupport
@@ -133,6 +137,7 @@
* ending in service.xml are accepted.
*
* @return The FileNameFilter for use by the AutoDeployer.
+ * @jmx:managed-operation
*/
public boolean accepts(DeploymentInfo di)
{
@@ -140,6 +145,13 @@
|| di.url.toString().endsWith("service.xml"));
}
+ /**
+ * Describe <code>init</code> method here.
+ *
+ * @param di a <code>DeploymentInfo</code> value
+ * @exception DeploymentException if an error occurs
+ * @jmx:managed-operation
+ */
public void init(DeploymentInfo di)
throws DeploymentException
{
@@ -205,6 +217,13 @@
}
}
+ /**
+ * Describe <code>create</code> method here.
+ *
+ * @param di a <code>DeploymentInfo</code> value
+ * @exception DeploymentException if an error occurs
+ * @jmx:managed-operation
+ */
public void create(DeploymentInfo di)
throws DeploymentException
{
@@ -216,23 +235,8 @@
List mbeans = di.mbeans;
mbeans.clear();
-
- NodeList nl = di.document.getElementsByTagName("mbean");
-
- for (int i = 0; i < nl.getLength(); i++)
- {
- Element mbean = (Element)nl.item(i);
-
- log.debug("deploying with ServiceController mbean " + mbean);
- ObjectName service = serviceController.install(mbean);
-
- if (service != null)
- {
- mbeans.add(service);
- // objectNameToSupplyingPackageMap.put(service, url);
- }
- }
-
+
+ mbeans.addAll(serviceController.install(di.document.getDocumentElement()));
// create the services
for (Iterator iter = di.mbeans.iterator(); iter.hasNext(); )
@@ -255,6 +259,7 @@
*
* @param di a <code>DeploymentInfo</code> value
* @exception DeploymentException if an error occurs
+ * @jmx:managed-operation
*/
public void start(DeploymentInfo di) throws DeploymentException
{
@@ -515,6 +520,7 @@
* @param service the <code>DeploymentInfo</code> value to stop.
* @exception DeploymentException Thrown if the package could not be
* undeployed
+ * @jmx:managed-operation
*/
public void stop(DeploymentInfo di)
//throws DeploymentException
@@ -545,6 +551,7 @@
*
* @param service a <code>DeploymentInfo</code> value
* @exception DeploymentException if an error occurs
+ * @jmx:managed-operation
*/
public void destroy(DeploymentInfo di)
//throws DeploymentException
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development