[jboss-cvs] JBossAS SVN: r93503 - projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Sep 14 15:47:28 EDT 2009
Author: alesj
Date: 2009-09-14 15:47:28 -0400 (Mon, 14 Sep 2009)
New Revision: 93503
Modified:
projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers/BundleStartStopDeployer.java
Log:
Fix inputs.
Modified: projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers/BundleStartStopDeployer.java
===================================================================
--- projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers/BundleStartStopDeployer.java 2009-09-14 19:43:30 UTC (rev 93502)
+++ projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers/BundleStartStopDeployer.java 2009-09-14 19:47:28 UTC (rev 93503)
@@ -23,9 +23,10 @@
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentStages;
-import org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer;
+import org.jboss.deployers.spi.deployer.helpers.AbstractAllInputDeployer;
import org.jboss.deployers.structure.spi.DeploymentUnit;
import org.jboss.osgi.plugins.facade.bundle.OSGiBundleState;
+import org.jboss.osgi.spi.metadata.OSGiMetaData;
import org.osgi.framework.BundleException;
/**
@@ -33,18 +34,21 @@
*
* @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
*/
-public class BundleStartStopDeployer extends AbstractSimpleRealDeployer<OSGiBundleState>
+public class BundleStartStopDeployer extends AbstractAllInputDeployer
{
public BundleStartStopDeployer()
{
- super(OSGiBundleState.class);
+ addInput(OSGiBundleState.class);
+ addInput(OSGiMetaData.class);
addInput(ClassLoader.class);
+ addOptionalInput(ClassLoader.class);
setStage(DeploymentStages.CLASSLOADER);
setTopLevelOnly(true);
}
- public void deploy(DeploymentUnit unit, OSGiBundleState deployment) throws DeploymentException
+ protected void internalDeploy(DeploymentUnit unit) throws DeploymentException
{
+ OSGiBundleState deployment = unit.getAttachment(OSGiBundleState.class);
try
{
deployment.start();
@@ -56,8 +60,9 @@
}
@Override
- public void undeploy(DeploymentUnit unit, OSGiBundleState deployment)
+ public void internalUndeploy(DeploymentUnit unit)
{
+ OSGiBundleState deployment = unit.getAttachment(OSGiBundleState.class);
try
{
deployment.stop();
More information about the jboss-cvs-commits
mailing list