[jboss-cvs] JBossAS SVN: r106088 - in projects/demos/microcontainer/trunk: opojo and 11 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 16 11:09:34 EDT 2010
Author: alesj
Date: 2010-06-16 11:09:33 -0400 (Wed, 16 Jun 2010)
New Revision: 106088
Added:
projects/demos/microcontainer/trunk/opojo/
projects/demos/microcontainer/trunk/opojo/jboss-demos-opojo.iml
projects/demos/microcontainer/trunk/opojo/pom.xml
projects/demos/microcontainer/trunk/opojo/src/
projects/demos/microcontainer/trunk/opojo/src/main/
projects/demos/microcontainer/trunk/opojo/src/main/java/
projects/demos/microcontainer/trunk/opojo/src/main/java/org/
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/Team.java
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/WorldCup.java
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/impl/
projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/impl/WorldCupImpl.java
projects/demos/microcontainer/trunk/opojo/src/main/resources/
projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/
projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/MANIFEST.MF
projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/service-mix-beans.xml
Modified:
projects/demos/microcontainer/trunk/pom.xml
Log:
Initial service-mix demo code.
Added: projects/demos/microcontainer/trunk/opojo/jboss-demos-opojo.iml
===================================================================
--- projects/demos/microcontainer/trunk/opojo/jboss-demos-opojo.iml (rev 0)
+++ projects/demos/microcontainer/trunk/opojo/jboss-demos-opojo.iml 2010-06-16 15:09:33 UTC (rev 106088)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module relativePaths="false" type="JAVA_MODULE" version="4">
+ <component name="NewModuleRootManager" inherit-compiler-output="false">
+ <output url="file://$MODULE_DIR$/target/classes" />
+ <output-test url="file://$MODULE_DIR$/target/test-classes" />
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" />
+ <excludeFolder url="file://$MODULE_DIR$/target" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MAVEN_REPOSITORY$/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MAVEN_REPOSITORY$/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ </component>
+</module>
+
Added: projects/demos/microcontainer/trunk/opojo/pom.xml
===================================================================
--- projects/demos/microcontainer/trunk/opojo/pom.xml (rev 0)
+++ projects/demos/microcontainer/trunk/opojo/pom.xml 2010-06-16 15:09:33 UTC (rev 106088)
@@ -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-opojo</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/opojo/src/main/java/org/jboss/demos/opojo/api/Team.java
===================================================================
--- projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/Team.java (rev 0)
+++ projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/Team.java 2010-06-16 15:09:33 UTC (rev 106088)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.opojo.api;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public interface Team
+{
+
+}
\ No newline at end of file
Added: projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/WorldCup.java
===================================================================
--- projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/WorldCup.java (rev 0)
+++ projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/api/WorldCup.java 2010-06-16 15:09:33 UTC (rev 106088)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.opojo.api;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public interface WorldCup
+{
+ Team winner();
+}
Added: projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/impl/WorldCupImpl.java
===================================================================
--- projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/impl/WorldCupImpl.java (rev 0)
+++ projects/demos/microcontainer/trunk/opojo/src/main/java/org/jboss/demos/opojo/impl/WorldCupImpl.java 2010-06-16 15:09:33 UTC (rev 106088)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.opojo.impl;
+
+import java.util.logging.Logger;
+
+import org.jboss.demos.opojo.api.Team;
+import org.jboss.demos.opojo.api.WorldCup;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class WorldCupImpl implements WorldCup
+{
+ private static Logger log = Logger.getLogger(WorldCup.class.getName());
+
+ private Team winner;
+
+ public WorldCupImpl(Team winner)
+ {
+ log.info("Winner: " + winner);
+ this.winner = winner;
+ }
+
+ public Team winner()
+ {
+ return winner;
+ }
+}
Added: projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/MANIFEST.MF
===================================================================
--- projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/MANIFEST.MF (rev 0)
+++ projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/MANIFEST.MF 2010-06-16 15:09:33 UTC (rev 106088)
@@ -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.opojo.api;version=1.0
+Import-Package: org.osgi.framework;version="[0,1000]"
Added: projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/service-mix-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/service-mix-beans.xml (rev 0)
+++ projects/demos/microcontainer/trunk/opojo/src/main/resources/META-INF/service-mix-beans.xml 2010-06-16 15:09:33 UTC (rev 106088)
@@ -0,0 +1,10 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <osgi xmlns="urn:jboss:pojo2osgi:1.0" name="WorldCup" class="org.jboss.demos.opojo.impl.WorldCupImpl">
+ <constructor>
+ <parameter><null/></parameter>
+ </constructor>
+ <exposed-type>org.jboss.demos.opojo.api.WorldCup</exposed-type>
+ </osgi>
+
+</deployment>
Modified: projects/demos/microcontainer/trunk/pom.xml
===================================================================
--- projects/demos/microcontainer/trunk/pom.xml 2010-06-16 14:43:38 UTC (rev 106087)
+++ projects/demos/microcontainer/trunk/pom.xml 2010-06-16 15:09:33 UTC (rev 106088)
@@ -36,6 +36,7 @@
<module>threads</module>
<module>infinispan</module>
<module>gfs</module>
+ <module>opojo</module>
<!-- <module>osgi</module> -->
<module>build</module>
</modules>
@@ -62,7 +63,7 @@
<version.spring>2.5.6</version.spring>
<!-- OSGi Facade-->
<version.org.jboss.osgi>1.0.0.Alpha5-SNAPSHOT</version.org.jboss.osgi>
- <version.osgi>r4v42-20090728</version.osgi>
+ <version.osgi>4.2.0</version.osgi>
</properties>
<build>
@@ -191,6 +192,11 @@
<artifactId>jboss-demos-vfs</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.jboss.demos</groupId>
+ <artifactId>jboss-demos-opojo</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>org.jboss.kernel</groupId>
@@ -511,6 +517,11 @@
</dependency>
<!-- OSGi Dependencies -->
<dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <version>${version.osgi}</version>
+ </dependency>
+ <dependency>
<groupId>org.jboss.osgi.framework</groupId>
<artifactId>jboss-osgi-framework-core</artifactId>
<version>${version.org.jboss.osgi}</version>
More information about the jboss-cvs-commits
mailing list