[jboss-cvs] JBossAS SVN: r92952 - in projects/demos/microcontainer/trunk: bundle and 23 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 28 08:49:21 EDT 2009


Author: alesj
Date: 2009-08-28 08:49:20 -0400 (Fri, 28 Aug 2009)
New Revision: 92952

Added:
   projects/demos/microcontainer/trunk/bundle/
   projects/demos/microcontainer/trunk/bundle/pom.xml
   projects/demos/microcontainer/trunk/bundle/src/
   projects/demos/microcontainer/trunk/bundle/src/main/
   projects/demos/microcontainer/trunk/bundle/src/main/java/
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/DemosActivator.java
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/DefaultEventService.java
   projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/EventService.java
   projects/demos/microcontainer/trunk/bundle/src/main/resources/
   projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/
   projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/MANIFEST.MF
   projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/bundle-beans.xml
   projects/demos/microcontainer/trunk/igloo/
   projects/demos/microcontainer/trunk/igloo/pom.xml
   projects/demos/microcontainer/trunk/igloo/src/
   projects/demos/microcontainer/trunk/igloo/src/main/
   projects/demos/microcontainer/trunk/igloo/src/main/java/
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/IglooMain.java
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers/
   projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers/BundleStartStopDeployer.java
   projects/demos/microcontainer/trunk/igloo/src/main/resources/
   projects/demos/microcontainer/trunk/igloo/src/main/resources/META-INF/
   projects/demos/microcontainer/trunk/igloo/src/main/resources/META-INF/igloo-beans.xml
   projects/demos/microcontainer/trunk/igloo/src/main/resources/log4j.properties
Modified:
   projects/demos/microcontainer/trunk/classloading/pom.xml
   projects/demos/microcontainer/trunk/pom.xml
Log:
Add MC + OSGi demo.

Added: projects/demos/microcontainer/trunk/bundle/pom.xml
===================================================================
--- projects/demos/microcontainer/trunk/bundle/pom.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/bundle/pom.xml	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,23 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.demos</groupId>
+    <artifactId>jboss-demos</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.demos</groupId>
+  <artifactId>jboss-demos-bundle</artifactId>
+  <packaging>jar</packaging>
+  <name>JBoss MC Demos Bundle</name>
+  <url>http://www.jboss.org/jbossmc</url>
+  <description>JBoss MC Demos</description>
+
+  <dependencies>
+    <!-- Compile (global dependencies) -->
+      <dependency>
+        <groupId>org.osgi</groupId>
+        <artifactId>org.osgi.core</artifactId>
+      </dependency>
+  </dependencies>
+  
+</project>
\ No newline at end of file

Added: projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/DemosActivator.java
===================================================================
--- projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/DemosActivator.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/DemosActivator.java	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.demos.bundle;
+
+import java.util.logging.Logger;
+
+import org.jboss.demos.bundle.services.DefaultEventService;
+import org.jboss.demos.bundle.services.EventService;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class DemosActivator implements BundleActivator
+{
+   private Logger log = Logger.getLogger(DemosActivator.class.getName());
+
+   private ServiceRegistration ref;
+
+   public void start(BundleContext bundleContext) throws Exception
+   {
+      log.info("Starting Demos activator ...");
+      ref = bundleContext.registerService(EventService.class.getName(), new DefaultEventService("JBossWorld 2009"), null);
+   }
+
+   public void stop(BundleContext bundleContext) throws Exception
+   {
+      log.info("Stopping Demos activator ...");
+      if (ref != null)
+         ref.unregister();
+   }
+}

Added: projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/DefaultEventService.java
===================================================================
--- projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/DefaultEventService.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/DefaultEventService.java	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.demos.bundle.services;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class DefaultEventService implements EventService
+{
+   private String name;
+
+   public DefaultEventService(String name)
+   {
+      this.name = name;
+   }
+
+   public String getEventName()
+   {
+      return name;
+   }
+}

Added: projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/EventService.java
===================================================================
--- projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/EventService.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/bundle/src/main/java/org/jboss/demos/bundle/services/EventService.java	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.demos.bundle.services;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public interface EventService
+{
+   String getEventName(); 
+}

Added: projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/MANIFEST.MF
===================================================================
--- projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/MANIFEST.MF	                        (rev 0)
+++ projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/MANIFEST.MF	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Ant-Version: Apache Ant 1.6.5
+Created-By: Ales Justin
+Implementation-Title: JBoss OSGi tests
+Implementation-Version: 2.0.0.beta2
+Implementation-Vendor: jboss.org
+Bundle-SymbolicName: org.jboss.demos.bundle
+Export-Package: org.jboss.demos.bundle.services;version=1.3
+Bundle-Activator: org.jboss.demos.bundle.DemosActivator

Added: projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/bundle-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/bundle-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/bundle/src/main/resources/META-INF/bundle-beans.xml	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,3 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+</deployment>

Modified: projects/demos/microcontainer/trunk/classloading/pom.xml
===================================================================
--- projects/demos/microcontainer/trunk/classloading/pom.xml	2009-08-28 12:44:09 UTC (rev 92951)
+++ projects/demos/microcontainer/trunk/classloading/pom.xml	2009-08-28 12:49:20 UTC (rev 92952)
@@ -57,10 +57,6 @@
       <artifactId>jboss-deployers-structure-spi</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.jboss.deployers</groupId>
-      <artifactId>jboss-deployers-vfs</artifactId>
-    </dependency>
-    <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-kernel</artifactId>
     </dependency>

Added: projects/demos/microcontainer/trunk/igloo/pom.xml
===================================================================
--- projects/demos/microcontainer/trunk/igloo/pom.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/igloo/pom.xml	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,92 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.demos</groupId>
+    <artifactId>jboss-demos</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.demos</groupId>
+  <artifactId>jboss-demos-igloo</artifactId>
+  <packaging>jar</packaging>
+  <name>JBoss MC Demos Igloo</name>
+  <url>http://www.jboss.org/jbossmc</url>
+  <description>JBoss MC Demos</description>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.demos</groupId>
+      <artifactId>jboss-demos-bootstrap</artifactId>
+    </dependency>
+    <!-- Compile (global dependencies) -->
+    <dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-vfs</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-vfs</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>apache-xerces</groupId>
+      <artifactId>xml-apis</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-vfs</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-core</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-dependency</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-structure-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-kernel</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-core-spi</artifactId>
+    </dependency>
+    
+    <!-- OSGi -->
+    
+      <dependency>
+        <groupId>org.osgi</groupId>
+        <artifactId>org.osgi.core</artifactId>
+      </dependency>
+      <dependency>
+        <groupId>org.osgi</groupId>
+        <artifactId>org.osgi.compendium</artifactId>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.osgi</groupId>
+        <artifactId>jboss-osgi-spi</artifactId>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.osgi.runtime</groupId>
+        <artifactId>jboss-osgi-deployers</artifactId>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.osgi.runtime</groupId>
+        <artifactId>jboss-osgi-runtime-microcontainer</artifactId>
+      </dependency>
+  </dependencies>
+
+</project>
\ No newline at end of file

Added: projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/IglooMain.java
===================================================================
--- projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/IglooMain.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/IglooMain.java	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,47 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.demos.bootstrap.igloo;
+
+import org.jboss.demos.bootstrap.Main;
+
+/**
+ * Start MC OSGi facade - code name Igloo.
+ * 
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class IglooMain
+{
+   public static void main(String[] args)
+   {
+      Main.main(args);
+
+      try
+      {
+         Main.deploy("${demos.home}/igloo/src/main/resources/META-INF/igloo-beans.xml");
+         Main.validate();
+      }
+      catch (Throwable t)
+      {
+         t.printStackTrace();
+      }
+   }
+}

Added: 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	                        (rev 0)
+++ projects/demos/microcontainer/trunk/igloo/src/main/java/org/jboss/demos/bootstrap/igloo/deployers/BundleStartStopDeployer.java	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.demos.bootstrap.igloo.deployers;
+
+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.structure.spi.DeploymentUnit;
+import org.jboss.osgi.plugins.facade.bundle.OSGiBundleState;
+import org.osgi.framework.BundleException;
+
+/**
+ * Simple bundle start/stop deployer.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class BundleStartStopDeployer extends AbstractSimpleRealDeployer<OSGiBundleState>
+{
+   public BundleStartStopDeployer()
+   {
+      super(OSGiBundleState.class);
+      setStage(DeploymentStages.DESCRIBE);
+   }
+
+   public void deploy(DeploymentUnit unit, OSGiBundleState deployment) throws DeploymentException
+   {
+      try
+      {
+         deployment.start();
+      }
+      catch (BundleException e)
+      {
+         throw DeploymentException.rethrowAsDeploymentException("Cannot start bundle.", e);
+      }
+   }
+
+   @Override
+   public void undeploy(DeploymentUnit unit, OSGiBundleState deployment)
+   {
+      try
+      {
+         deployment.stop();
+      }
+      catch (BundleException e)
+      {
+         log.warn("Exception stopping bundle: " + e);
+      }
+   }
+}

Added: projects/demos/microcontainer/trunk/igloo/src/main/resources/META-INF/igloo-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/igloo/src/main/resources/META-INF/igloo-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/igloo/src/main/resources/META-INF/igloo-beans.xml	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,63 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!--
+  ********************************
+  *                              *
+  *  OSGi Framework              *
+  *                              *
+  ********************************
+  -->
+
+  <bean name="OSGiBundleManager" class="org.jboss.osgi.plugins.facade.bundle.OSGiBundleManager">
+    <constructor><parameter><inject bean="MainDeployer" /></parameter></constructor>
+    <property name="properties">
+      <map keyClass="java.lang.String" valueClass="java.lang.String">
+        <entry><key>org.osgi.framework.storage</key><value>${log4j.output.dir}/osgi-store</value></entry>
+        <entry><key>org.osgi.framework.storage.clean</key><value>onFirstInit</value></entry>
+        <entry><key>org.osgi.framework.system.packages.extra</key><value>
+          org.jboss.logging;version=2.0,
+          org.jboss.osgi.spi.capability;version=1.0,
+          org.jboss.osgi.spi.logging;version=1.0,
+          org.jboss.osgi.spi.management;version=1.0,
+          org.jboss.osgi.spi.service;version=1.0,
+          org.jboss.osgi.spi.testing;version=1.0,
+          org.jboss.osgi.spi.util;version=1.0
+        </value></entry>
+      </map>
+    </property>
+    <incallback method="addPlugin" />
+    <uncallback method="removePlugin" />
+  </bean>
+
+  <bean name="OSGiFrameworkEventsPlugin" class="org.jboss.osgi.plugins.facade.plugins.FrameworkEventsPluginImpl">
+    <constructor><parameter><inject bean="OSGiBundleManager" /></parameter></constructor>
+  </bean>
+  <bean name="OSGiStoragePlugin" class="org.jboss.osgi.plugins.facade.plugins.BundleStoragePluginImpl">
+    <constructor><parameter><inject bean="OSGiBundleManager" /></parameter></constructor>
+  </bean>
+  <bean name="OSGiSystemPackages" class="org.jboss.osgi.plugins.facade.plugins.SystemPackagesPluginImpl">
+    <constructor><parameter><inject bean="OSGiBundleManager" /></parameter></constructor>
+  </bean>
+
+  <!--
+  ********************************
+  *                              *
+  *  OSGi Deployment             *
+  *                              *
+  ********************************
+  -->
+
+  <!-- Bundle Structure -->
+  <bean name="BundleStructure" class="org.jboss.osgi.deployer.BundleStructureDeployer" />
+
+  <!-- OSGI Deployment -->
+  <bean name="OSGiManifestParsingDeployer" class="org.jboss.osgi.plugins.deployers.bundle.OSGiManifestParsingDeployer" />
+  <bean name="OSGiBundleStateDeployer" class="org.jboss.osgi.plugins.deployers.bundle.OSGiBundleStateDeployer">
+    <constructor><parameter><inject bean="OSGiBundleManager" /></parameter></constructor>
+  </bean>
+  <bean name="OSGiBundleClassLoadingDeployer" class="org.jboss.osgi.plugins.facade.classloading.OSGiBundleClassLoadingDeployer"/>
+  <bean name="OSGiBundleActivatorDeployer" class="org.jboss.osgi.plugins.deployers.bundle.OSGiBundleActivatorDeployer" />
+
+  <bean name="OSGiBundleStartStopDeployer" class="org.jboss.demos.bootstrap.igloo.deployers.BundleStartStopDeployer" />  
+
+</deployment>

Added: projects/demos/microcontainer/trunk/igloo/src/main/resources/log4j.properties
===================================================================
--- projects/demos/microcontainer/trunk/igloo/src/main/resources/log4j.properties	                        (rev 0)
+++ projects/demos/microcontainer/trunk/igloo/src/main/resources/log4j.properties	2009-08-28 12:49:20 UTC (rev 92952)
@@ -0,0 +1,6 @@
+log4j.rootLogger=DEBUG, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+# Pattern to output the caller's file name and line number.
+log4j.appender.stdout.layout.ConversionPattern=JBoss-MC-Demo %5p [%d{dd-MM-yyyy HH:mm:ss}] %c{1} - %m%n

Modified: projects/demos/microcontainer/trunk/pom.xml
===================================================================
--- projects/demos/microcontainer/trunk/pom.xml	2009-08-28 12:44:09 UTC (rev 92951)
+++ projects/demos/microcontainer/trunk/pom.xml	2009-08-28 12:49:20 UTC (rev 92952)
@@ -27,6 +27,8 @@
     <module>ioc</module>
     <module>classloading</module>
     <module>classpath</module>
+    <module>igloo</module>
+    <module>bundle</module>
     <!-- <module>osgi</module> -->
     <module>build</module>
   </modules>
@@ -36,12 +38,12 @@
     <version.jboss.vfs>2.1.2.GA</version.jboss.vfs>
     <version.jboss.man>2.1.0.GA</version.jboss.man>
     <version.jboss.mdr>2.0.2.GA</version.jboss.mdr>
-    <version.jboss.microcontainer>2.0.7.GA</version.jboss.microcontainer>
-    <version.jboss.deployers>2.0.8.GA</version.jboss.deployers>
-    <version.jboss.classloader>2.0.6.SP1</version.jboss.classloader>
+    <version.jboss.microcontainer>2.0.9-SNAPSHOT</version.jboss.microcontainer>
+    <version.jboss.classloader>2.0.7-SNAPSHOT</version.jboss.classloader>
+    <version.jboss.deployers>2.0.9-SNAPSHOT</version.jboss.deployers>
     <version.jboss.common.core>2.2.14.GA</version.jboss.common.core>
-    <version.jboss.common.logging.spi>2.0.5.GA</version.jboss.common.logging.spi>
-    <version.jboss.common.logging.log4j>2.0.5.GA</version.jboss.common.logging.log4j>
+    <version.jboss.common.logging.spi>2.1.0.GA</version.jboss.common.logging.spi>
+    <version.jboss.common.logging.log4j>2.1.0.GA</version.jboss.common.logging.log4j>
     <version.jbossxb>2.0.1.GA</version.jbossxb>
     <version.jboss.aop>2.0.1.GA</version.jboss.aop>
     <version.org.jboss.test>1.0.5.GA</version.org.jboss.test>
@@ -49,6 +51,13 @@
     <version.javassist>3.10.0.GA</version.javassist>
     <version.xerces>2.9.1</version.xerces>
     <version.spring>2.5.6</version.spring>
+    <!-- OSGi Facade-->
+    <version.jboss.osgi.runtime.mc>1.0.2-SNAPSHOT</version.jboss.osgi.runtime.mc>
+    <version.jboss.osgi.common>1.0.1-SNAPSHOT</version.jboss.osgi.common>
+    <version.jboss.osgi.runtime.deployers>1.0.1-SNAPSHOT</version.jboss.osgi.runtime.deployers>
+    <version.jboss.osgi.spi>1.0.1-SNAPSHOT</version.jboss.osgi.spi>
+    <version.jboss.osgi.spi>1.0.1-SNAPSHOT</version.jboss.osgi.spi>
+    <version.osgi>r4v42-20090728</version.osgi>
   </properties>
 
   <build>
@@ -395,6 +404,32 @@
         <artifactId>aopalliance</artifactId>
         <version>1.0</version>
       </dependency>
+      <!-- OSGi Dependencies -->
+      <dependency>
+        <groupId>org.osgi</groupId>
+        <artifactId>org.osgi.core</artifactId>
+        <version>${version.osgi}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.osgi</groupId>
+        <artifactId>org.osgi.compendium</artifactId>
+        <version>${version.osgi}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.osgi</groupId>
+        <artifactId>jboss-osgi-spi</artifactId>
+        <version>${version.jboss.osgi.spi}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.osgi.runtime</groupId>
+        <artifactId>jboss-osgi-deployers</artifactId>
+        <version>${version.jboss.osgi.runtime.deployers}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.osgi.runtime</groupId>
+        <artifactId>jboss-osgi-runtime-microcontainer</artifactId>
+        <version>${version.jboss.osgi.runtime.mc}</version>
+      </dependency>
       <!-- test dependencies -->
       <dependency>
         <groupId>org.jboss</groupId>




More information about the jboss-cvs-commits mailing list