aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r941319 [1/2] - in /incubator/aries/trunk/samples-sandbox/demo-sample: ./ demo-assembly/ demo-assembly/src/ demo-assembly/src/main/ demo-assembly/src/main/filtered-resources/ demo-assembly/src/main/filtered-resources/configuration/ demo-pro...
Date Wed, 05 May 2010 14:43:44 GMT
Author: zoe
Date: Wed May  5 14:43:42 2010
New Revision: 941319

URL: http://svn.apache.org/viewvc?rev=941319&view=rev
Log:
ARIES-302 Adding new prototype sample

Added:
    incubator/aries/trunk/samples-sandbox/demo-sample/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/pom.xml
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/filtered-resources/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/filtered-resources/configuration/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/filtered-resources/configuration/config.ini
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/pom.xml
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/BundleDependencies.java
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/ServerSideClass.java
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfo.java
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfoProvider.java
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleContextInfoProvider.java
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleInfoImpl.java
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/META-INF/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/dwr.xml
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/lib/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/web.xml
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/Thumbs.db   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndCopy.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndMove.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoCopy.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoMove.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_dx_gradient.gif   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_down.gif   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_up.gif   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header_shadow.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/resolved.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/row_back.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/running.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabEnabled_rotated.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabHover_rotated.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/td_button_down.png   (with props)
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/index.html
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Bundle.js
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Dependency.js
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/TwistieSection.js
    incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/index.html
    incubator/aries/trunk/samples-sandbox/demo-sample/pom.xml

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/pom.xml?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/pom.xml (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/pom.xml Wed May  5 14:43:42 2010
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+	<!--
+		* Licensed to the Apache Software Foundation (ASF) under one * or more
+		contributor license agreements. See the NOTICE file * distributed with
+		this work for additional information * regarding copyright ownership.
+		The ASF licenses this file * to you under the Apache License, Version
+		2.0 (the * "License"); you may not use this file except in compliance
+		* with the License. You may obtain a copy of the License at * *
+		http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by
+		applicable law or agreed to in writing, * software distributed under
+		the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY * KIND, either express or implied. See the
+		License for the * specific language governing permissions and
+		limitations * under the License.
+	-->
+<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">
+
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.aries.samples.demo</groupId>
+		<artifactId>demo</artifactId>
+		<version>0.2-incubating-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>org.apache.aries.samples.demo.assembly</artifactId>
+	<name>Apache Aries demo sample assembly</name>
+	<packaging>pom</packaging>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.eclipse.equinox</groupId>
+			<artifactId>cm</artifactId>
+		</dependency>
+
+        <dependency>
+	       <groupId>org.apache.felix</groupId>
+	       <artifactId>javax.servlet</artifactId>
+	       <version>1.0.0</version>
+	    </dependency>
+
+		<dependency>
+            <groupId>org.apache.aries.application</groupId>
+		    <artifactId>org.apache.aries.application</artifactId>
+			<version>0.2-incubating-SNAPSHOT</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.aries.blueprint</groupId>
+			<artifactId>org.apache.aries.blueprint</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.aries</groupId>
+			<artifactId>org.apache.aries.util</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.fileinstall</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.ops4j.pax.logging</groupId>
+			<artifactId>pax-logging-api</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.ops4j.pax.logging</groupId>
+			<artifactId>pax-logging-service</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.ops4j.pax.web</groupId>
+			<artifactId>pax-web-extender-war</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.ops4j.pax.web</groupId>
+			<artifactId>pax-web-jsp</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.ops4j.pax.web</groupId>
+			<artifactId>pax-web-jetty-bundle</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.eclipse.osgi</groupId>
+			<artifactId>services</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.eclipse</groupId>
+			<artifactId>osgi</artifactId>
+		</dependency>
+	</dependencies>
+
+	<build>
+
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-resources-plugin</artifactId>
+				<configuration>
+					<outputDirectory>${project.build.directory}</outputDirectory>
+				</configuration>
+				<executions>
+					<execution>
+						<id>filter</id>
+						<phase>generate-resources</phase>
+						<goals>
+							<goal>resources</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy</id>
+						<phase>package</phase>
+						<goals>
+							<goal>copy-dependencies</goal>
+						</goals>
+						<configuration>
+							<excludeTransitive>true</excludeTransitive>
+							<outputDirectory>${project.build.directory}</outputDirectory>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/filtered-resources/configuration/config.ini
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/filtered-resources/configuration/config.ini?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/filtered-resources/configuration/config.ini (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-assembly/src/main/filtered-resources/configuration/config.ini Wed May  5 14:43:42 2010
@@ -0,0 +1,352 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+osgi.bundles=\
+cm-3.2.0-v20070116.jar@start,\
+javax.servlet-1.0.0.jar@start,\
+org.apache.aries.application-${ariesApplicationVersion}.jar@start,\
+org.apache.aries.blueprint-${ariesBlueprintVersion}.jar@start,\
+org.apache.aries.util-${ariesUtilVersion}.jar@start,\
+org.apache.felix.fileinstall-2.0.8.jar@start,\
+pax-logging-api-1.4.jar@start,\
+pax-logging-service-1.4.jar@start,\
+pax-web-extender-war-0.7.2.jar@start,\
+pax-web-jetty-bundle-0.7.2.jar@start,\
+pax-web-jsp-0.7.2.jar@start,\
+services-3.1.200-v20070605.jar@start
+eclipse.ignoreApp=true
+org.ops4j.pax.logging.DefaultServiceLog.level=INFO
+org.osgi.framework.system.packages=javax.accessibility,\
+javax.activation,\
+javax.activity,\
+javax.annotation,\
+javax.annotation.processing,\
+javax.crypto,\
+javax.crypto.interfaces,\
+javax.crypto.spec,\
+javax.imageio,\
+javax.imageio.event,\
+javax.imageio.metadata,\
+javax.imageio.plugins.bmp,\
+javax.imageio.plugins.jpeg,\
+javax.imageio.spi,\
+javax.imageio.stream,\
+javax.jms,\
+javax.jws,\
+javax.jws.soap,\
+javax.lang.model,\
+javax.lang.model.element,\
+javax.lang.model.type,\
+javax.lang.model.util,\
+javax.management,\
+javax.management.loading,\
+javax.management.modelmbean,\
+javax.management.monitor,\
+javax.management.openmbean,\
+javax.management.relation,\
+javax.management.remote,\
+javax.management.remote.rmi,\
+javax.management.timer,\
+javax.naming,\
+javax.naming.directory,\
+javax.naming.event,\
+javax.naming.ldap,\
+javax.naming.spi,\
+javax.net,\
+javax.net.ssl,\
+javax.print,\
+javax.print.attribute,\
+javax.print.attribute.standard,\
+javax.print.event,\
+javax.rmi,\
+javax.rmi.CORBA,\
+javax.rmi.ssl,\
+javax.script,\
+javax.security.auth,\
+javax.security.auth.callback,\
+javax.security.auth.kerberos,\
+javax.security.auth.login,\
+javax.security.auth.spi,\
+javax.security.auth.x500,\
+javax.security.cert,\
+javax.security.sasl,\
+javax.sound.midi,\
+javax.sound.midi.spi,\
+javax.sound.sampled,\
+javax.sound.sampled.spi,\
+javax.sql,\
+javax.sql.rowset,\
+javax.sql.rowset.serial,\
+javax.sql.rowset.spi,\
+javax.swing,\
+javax.swing.border,\
+javax.swing.colorchooser,\
+javax.swing.event,\
+javax.swing.filechooser,\
+javax.swing.plaf,\
+javax.swing.plaf.basic,\
+javax.swing.plaf.metal,\
+javax.swing.plaf.multi,\
+javax.swing.plaf.synth,\
+javax.swing.table,\
+javax.swing.text,\
+javax.swing.text.html,\
+javax.swing.text.html.parser,\
+javax.swing.text.rtf,\
+javax.swing.tree,\
+javax.swing.undo,\
+javax.tools,\
+javax.transaction,\
+javax.transaction.xa,\
+javax.xml,\
+javax.xml.bind,\
+javax.xml.bind.annotation,\
+javax.xml.bind.annotation.adapters,\
+javax.xml.bind.attachment,\
+javax.xml.bind.helpers,\
+javax.xml.bind.util,\
+javax.xml.crypto,\
+javax.xml.crypto.dom,\
+javax.xml.crypto.dsig,\
+javax.xml.crypto.dsig.dom,\
+javax.xml.crypto.dsig.keyinfo,\
+javax.xml.crypto.dsig.spec,\
+javax.xml.datatype,\
+javax.xml.namespace,\
+javax.xml.parsers,\
+javax.xml.soap,\
+javax.xml.stream,\
+javax.xml.stream.events,\
+javax.xml.stream.util,\
+javax.xml.transform,\
+javax.xml.transform.dom,\
+javax.xml.transform.sax,\
+javax.xml.transform.stax,\
+javax.xml.transform.stream,\
+javax.xml.validation,\
+javax.xml.ws,\
+javax.xml.ws.handler,\
+javax.xml.ws.handler.soap,\
+javax.xml.ws.http,\
+javax.xml.ws.soap,\
+javax.xml.ws.spi,\
+javax.xml.ws.wsaddressing,\
+javax.xml.xpath,\
+org.ietf.jgss,\
+org.omg.CORBA,\
+org.omg.CORBA_2_3,\
+org.omg.CORBA_2_3.portable,\
+org.omg.CORBA.DynAnyPackage,\
+org.omg.CORBA.ORBPackage,\
+org.omg.CORBA.portable,\
+org.omg.CORBA.TypeCodePackage,\
+org.omg.CosNaming,\
+org.omg.CosNaming.NamingContextExtPackage,\
+org.omg.CosNaming.NamingContextPackage,\
+org.omg.Dynamic,\
+org.omg.DynamicAny,\
+org.omg.DynamicAny.DynAnyFactoryPackage,\
+org.omg.DynamicAny.DynAnyPackage,\
+org.omg.IOP,\
+org.omg.IOP.CodecFactoryPackage,\
+org.omg.IOP.CodecPackage,\
+org.omg.Messaging,\
+org.omg.PortableInterceptor,\
+org.omg.PortableInterceptor.ORBInitInfoPackage,\
+org.omg.PortableServer,\
+org.omg.PortableServer.CurrentPackage,\
+org.omg.PortableServer.POAManagerPackage,\
+org.omg.PortableServer.POAPackage,\
+org.omg.PortableServer.portable,\
+org.omg.PortableServer.ServantLocatorPackage,\
+org.omg.SendingContext,\
+org.omg.stub.java.rmi,\
+org.w3c.dom,\
+org.w3c.dom.bootstrap,\
+org.w3c.dom.css,\
+org.w3c.dom.events,\
+org.w3c.dom.html,\
+org.w3c.dom.ls,\
+org.w3c.dom.ranges,\
+org.w3c.dom.stylesheets,\
+org.w3c.dom.traversal,\
+org.w3c.dom.views,\
+org.w3c.dom.xpath,\
+org.xml.sax,\
+org.xml.sax.ext,\
+org.xml.sax.helpers,\
+com.ibm.CORBA.iiop
+
+xxorg.osgi.framework.system.packages=javax.xml.parsers,\
+javax.naming
+xorg.osgi.framework.system.packages=javax.accessibility,\
+javax.activation,\
+javax.activity,\
+javax.annotation,\
+javax.annotation.processing,\
+javax.crypto,\
+javax.crypto.interfaces,\
+javax.crypto.spec,\
+javax.imageio,\
+javax.imageio.event,\
+javax.imageio.metadata,\
+javax.imageio.plugins.bmp,\
+javax.imageio.plugins.jpeg,\
+javax.imageio.spi,\
+javax.imageio.stream,\
+javax.jws,\
+javax.jws.soap,\
+javax.lang.model,\
+javax.lang.model.element,\
+javax.lang.model.type,\
+javax.lang.model.util,\
+javax.management,\
+javax.management.loading,\
+javax.management.modelmbean,\
+javax.management.monitor,\
+javax.management.openmbean,\
+javax.management.relation,\
+javax.management.remote,\
+javax.management.remote.rmi,\
+javax.management.timer,\
+javax.naming,\
+javax.naming.directory,\
+javax.naming.event,\
+javax.naming.ldap,\
+javax.naming.spi,\
+javax.net,\
+javax.net.ssl,\
+javax.print,\
+javax.print.attribute,\
+javax.print.attribute.standard,\
+javax.print.event,\
+javax.rmi,\
+javax.rmi.CORBA,\
+javax.rmi.ssl,\
+javax.script,\
+javax.security.auth,\
+javax.security.auth.callback,\
+javax.security.auth.kerberos,\
+javax.security.auth.login,\
+javax.security.auth.spi,\
+javax.security.auth.x500,\
+javax.security.cert,\
+javax.security.sasl,\
+javax.sound.midi,\
+javax.sound.midi.spi,\
+javax.sound.sampled,\
+javax.sound.sampled.spi,\
+javax.sql,\
+javax.sql.rowset,\
+javax.sql.rowset.serial,\
+javax.sql.rowset.spi,\
+javax.swing,\
+javax.swing.border,\
+javax.swing.colorchooser,\
+javax.swing.event,\
+javax.swing.filechooser,\
+javax.swing.plaf,\
+javax.swing.plaf.basic,\
+javax.swing.plaf.metal,\
+javax.swing.plaf.multi,\
+javax.swing.plaf.synth,\
+javax.swing.table,\
+javax.swing.text,\
+javax.swing.text.html,\
+javax.swing.text.html.parser,\
+javax.swing.text.rtf,\
+javax.swing.tree,\
+javax.swing.undo,\
+javax.tools,\
+javax.transaction,\
+javax.transaction.xa,\
+javax.xml,\
+javax.xml.bind,\
+javax.xml.bind.annotation,\
+javax.xml.bind.annotation.adapters,\
+javax.xml.bind.attachment,\
+javax.xml.bind.helpers,\
+javax.xml.bind.util,\
+javax.xml.crypto,\
+javax.xml.crypto.dom,\
+javax.xml.crypto.dsig,\
+javax.xml.crypto.dsig.dom,\
+javax.xml.crypto.dsig.keyinfo,\
+javax.xml.crypto.dsig.spec,\
+javax.xml.datatype,\
+javax.xml.namespace,\
+javax.xml.parsers,\
+javax.xml.soap,\
+javax.xml.stream,\
+javax.xml.stream.events,\
+javax.xml.stream.util,\
+javax.xml.transform,\
+javax.xml.transform.dom,\
+javax.xml.transform.sax,\
+javax.xml.transform.stax,\
+javax.xml.transform.stream,\
+javax.xml.validation,\
+javax.xml.ws,\
+javax.xml.ws.handler,\
+javax.xml.ws.handler.soap,\
+javax.xml.ws.http,\
+javax.xml.ws.soap,\
+javax.xml.ws.spi,\
+javax.xml.ws.wsaddressing,\
+javax.xml.xpath,\
+org.ietf.jgss,\
+org.omg.CORBA,\
+org.omg.CORBA_2_3,\
+org.omg.CORBA_2_3.portable,\
+org.omg.CORBA.DynAnyPackage,\
+org.omg.CORBA.ORBPackage,\
+org.omg.CORBA.portable,\
+org.omg.CORBA.TypeCodePackage,\
+org.omg.CosNaming,\
+org.omg.CosNaming.NamingContextExtPackage,\
+org.omg.CosNaming.NamingContextPackage,\
+org.omg.Dynamic,\
+org.omg.DynamicAny,\
+org.omg.DynamicAny.DynAnyFactoryPackage,\
+org.omg.DynamicAny.DynAnyPackage,\
+org.omg.IOP,\
+org.omg.IOP.CodecFactoryPackage,\
+org.omg.IOP.CodecPackage,\
+org.omg.Messaging,\
+org.omg.PortableInterceptor,\
+org.omg.PortableInterceptor.ORBInitInfoPackage,\
+org.omg.PortableServer,\
+org.omg.PortableServer.CurrentPackage,\
+org.omg.PortableServer.POAManagerPackage,\
+org.omg.PortableServer.POAPackage,\
+org.omg.PortableServer.portable,\
+org.omg.PortableServer.ServantLocatorPackage,\
+org.omg.SendingContext,\
+org.omg.stub.java.rmi,\
+org.w3c.dom,\
+org.w3c.dom.bootstrap,\
+org.w3c.dom.css,\
+org.w3c.dom.events,\
+org.w3c.dom.html,\
+org.w3c.dom.ls,\
+org.w3c.dom.ranges,\
+org.w3c.dom.stylesheets,\
+org.w3c.dom.traversal,\
+org.w3c.dom.views,\
+org.w3c.dom.xpath,\
+org.xml.sax,\
+org.xml.sax.ext,\
+org.xml.sax.helpers

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/pom.xml?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/pom.xml (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/pom.xml Wed May  5 14:43:42 2010
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+       http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<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">
+    
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.aries.samples.demo</groupId>
+        <artifactId>demo</artifactId>
+        <version>0.2-incubating-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.aries.samples.demo.prototype</artifactId>
+    <name>Apache Aries demo prototype</name>
+    <packaging>bundle</packaging>
+
+
+	<dependencies>
+		<dependency>
+			<groupId>org.eclipse</groupId>
+			<artifactId>osgi</artifactId>
+		</dependency>
+        <dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>javax.servlet</artifactId>
+			<version>1.0.0</version>
+		</dependency>
+		<dependency>
+			<groupId>org.directwebremoting</groupId>
+			<artifactId>dwr</artifactId>
+			<version>3.0.0.109.dev-SNAPSHOT</version>
+			<scope>provided</scope>
+			<optional>true</optional>
+		</dependency>
+        <dependency>
+			<groupId>org.apache.aries.application</groupId>
+			<artifactId>org.apache.aries.application.utils</artifactId>
+		</dependency>
+	</dependencies>
+
+    
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>unpack dojo</id>
+						<phase>generate-sources</phase>
+						<goals>
+							<goal>unpack</goal>
+						</goals>
+						<configuration>
+							<artifactItems>
+								<artifactItem>
+									<groupId>org.dojotoolkit</groupId>
+									<artifactId>dojo</artifactId>
+									<version>1.4.2</version>
+									<type>zip</type>
+								</artifactItem>
+							</artifactItems>
+							<outputDirectory>${project.build.directory}/dojo</outputDirectory>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-bundle-plugin</artifactId>
+				<configuration>
+					<instructions>
+						<Bundle-ClassPath>.,WEB-INF/lib</Bundle-ClassPath>
+						<Include-Resource>{maven-resources},target/dojo/dojo-1.4.2</Include-Resource>
+						<Web-ContextPath>/</Web-ContextPath>
+						<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+						<Private-Package>org.apache.aries.samples.demo.prototype.*</Private-Package>
+						<Export-Package>!org.apache.aries.samples.demo.prototype.*</Export-Package> 
+						<Import-Package>
+							javax.imageio,
+							javax.jms,
+							javax.servlet,
+							javax.servlet.http,
+							javax.sql,
+							javax.swing.event,
+							javax.xml.parsers,
+							javax.xml.transform,
+							javax.xml.transform.dom,
+							javax.xml.transform.stream,
+							org.w3c.dom,
+							org.xml.sax,
+							net.sf.hibernate;resolution:=optional,
+							nu.xom;resolution:=optional,
+							org.aopalliance.intercept;resolution:=optional,
+							org.apache.bsf;resolution:=optional,
+							org.apache.catalina;resolution:=optional,
+							org.apache.commons.fileupload;resolution:=optional,
+							org.apache.commons.fileupload.disk;resolution:=optional,
+							org.apache.commons.fileupload.servlet;resolution:=optional,
+							org.apache.commons.logging,
+							org.apache.struts.action;resolution:=optional,
+							org.apache.struts.config;resolution:=optional,
+							org.apache.struts.util;resolution:=optional,
+							org.apache.xmlbeans;resolution:=optional,
+							org.dom4j*;resolution:=optional,
+							org.hibernate*;resolution:=optional,
+							org.jdom*;resolution:=optional,
+							org.mortbay*;resolution:=optional,
+							org.mozilla*;resolution:=optional,
+							org.springframework*;resolution:=optional,
+							com.google.inject*;resolution:=optional,
+							com.yahoo.platform.yui.compressor;resolution:=optional,
+							dojox.cometd;resolution:=optional,
+							*
+						</Import-Package>
+						<Embed-Dependency>dwr</Embed-Dependency>
+						<Embed-Directory>WEB-INF/lib</Embed-Directory>
+					</instructions>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+
+	<repositories>
+		<repository>
+			<id>dwr-snapshots</id>
+			<name>DWR SNAPSHOT Repository</name>
+			<url>http://download.directwebremoting.org/maven2-snapshot/</url>
+		</repository>
+	</repositories>
+</project>

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/BundleDependencies.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/BundleDependencies.java?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/BundleDependencies.java (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/BundleDependencies.java Wed May  5 14:43:42 2010
@@ -0,0 +1,61 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.samples.demo.prototype;
+
+import java.util.Map;
+import java.util.Set;
+
+public class BundleDependencies {
+	
+	Map<Long, Set<Long>> totalDependencies;
+	
+	
+	public Map<Long, Set<Long>> getTotalDependencies() {
+		return totalDependencies;
+	}
+
+	public void setTotalDependencies(Map<Long, Set<Long>> totalDependencies) {
+		this.totalDependencies = totalDependencies;
+	}
+
+	Map<Long, Set<Long>> packageImportDependencies;
+	
+	public Map<Long, Set<Long>> getPackageImportDependencies() {
+		return packageImportDependencies;
+	}
+
+	public void setPackageImportDependencies(
+			Map<Long, Set<Long>> packageImportDependencies) {
+		this.packageImportDependencies = packageImportDependencies;
+	}
+
+	public Map<Long, Set<Long>> getPackageExportDependencies() {
+		return packageExportDependencies;
+	}
+
+	public void setPackageExportDependencies(
+			Map<Long, Set<Long>> packageExportDependencies) {
+		this.packageExportDependencies = packageExportDependencies;
+	}
+
+	Map<Long, Set<Long>> packageExportDependencies;
+	
+	public BundleDependencies(){		
+	}
+}

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/ServerSideClass.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/ServerSideClass.java?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/ServerSideClass.java (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/ServerSideClass.java Wed May  5 14:43:42 2010
@@ -0,0 +1,278 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.samples.demo.prototype;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.ScheduledThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+
+import javax.servlet.ServletContext;
+
+import org.directwebremoting.Browser;
+import org.directwebremoting.ServerContextFactory;
+import org.directwebremoting.ScriptSession;
+import org.directwebremoting.ScriptBuffer;
+import org.directwebremoting.ui.dwr.Util;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+import org.apache.aries.samples.demo.prototype.info.BundleInfo;
+import org.apache.aries.samples.demo.prototype.info.BundleInfoProvider;
+import org.apache.aries.samples.demo.prototype.info.impl.BundleContextInfoProvider;
+
+
+public class ServerSideClass implements Runnable, BundleInfoProvider.BundleInfoListener {
+
+	private BundleInfoProvider bundleInfoProvider=null;
+
+    protected transient boolean active = false;
+	
+    private final class UpdatePageInvocation implements Runnable {
+    	
+		private final String output;
+
+		private UpdatePageInvocation(String output) {
+			this.output = output;
+		}
+
+		public void run() {
+		    Util.setValue("displayMessage", "Server Time is : "+String.valueOf(output) );
+		    
+		    //make test fn that does the blue/red indicator
+		    addFunctionCall("testJS", output);		   		    
+		}
+	}
+
+	public ServerSideClass() {
+        ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
+        executor.scheduleAtFixedRate(this, 1, 1, TimeUnit.SECONDS); 
+        
+    	ServletContext context = ServerContextFactory.get().getServletContext();
+		Object o = context.getAttribute("osgi-bundlecontext");
+		if(o!=null){
+			if(o instanceof BundleContext){
+				BundleContext b_ctx = (BundleContext)o;
+				this.bundleInfoProvider = new BundleContextInfoProvider(b_ctx);
+				this.bundleInfoProvider.registerBundleInfoListener(this);
+			}
+		}
+		
+		if(this.bundleInfoProvider==null){
+		   throw new RuntimeException("Unable to instantiate the bundleInfoProvider");
+		}
+    }
+
+    public void run() {
+        if (active) {
+            setMessageDisplay(new Date().toString());
+        }
+    }
+
+    /**
+     * Called from the client to turn the clock on/off
+     */
+    public synchronized void toggle() {
+        active = !active;
+
+        if (active) {
+            setMessageDisplay("Started");
+        }
+        else {
+            setMessageDisplay("Stopped");
+        }
+    }
+    
+	private String bundleStateToString(int bundleState){
+		switch(bundleState){
+		case Bundle.UNINSTALLED : return "UNINSTALLED";
+		case Bundle.INSTALLED : return "INSTALLED";
+		case Bundle.RESOLVED : return "RESOLVED";
+		case Bundle.STARTING : return "STARTING";
+		case Bundle.STOPPING : return "STOPPING";
+		case Bundle.ACTIVE : return "ACTIVE";
+		default : return "UNKNOWN";
+		}
+	}    
+
+    /**
+     * Actually alter the clients.
+     * @param output The string to display.
+     */
+    public void setMessageDisplay(final String output) {
+        String page = ServerContextFactory.get().getContextPath() + "/web/index.html";
+        Browser.withPage(page, new UpdatePageInvocation(output));
+        
+    }
+    
+    /**
+     * this is invoked by a page onload.. so until it's invoked.. we dont care
+     * about bundles.. 
+     */
+    public void getInitialBundles(){
+    	
+    	BundleDependencies bd = new BundleDependencies();
+    	
+    	Map<Long, Set<Long>> allDep = new HashMap<Long, Set<Long>>();
+    	Map<Long, Set<Long>> allImpDep = new HashMap<Long, Set<Long>>();
+    	Map<Long, Set<Long>> allExpDep = new HashMap<Long, Set<Long>>();
+    	
+    	BundleInfo[] bis = this.bundleInfoProvider.getBundles();
+    	System.err.println("Got "+bis.length+" bundles back from the provider ");
+    	if(bis!=null){
+    		for(BundleInfo b: bis){
+    	
+    			System.err.println("Adding "+b.getBundleId()+" "+b.getSymbolicName()+" "+bundleStateToString(b.getState())+" "+b.getVersion());
+    			
+    			addFunctionCall("addBundle", 
+    					b.getBundleId(), 
+    					b.getSymbolicName(), 
+    					bundleStateToString(b.getState()), 
+    					b.getVersion());
+    			   			
+    			Set<Long> dependencies = new HashSet<Long>();
+    			for(long id : b.getDependencies() ){
+    				dependencies.add(id);
+    			}
+    			
+    			Set<Long> impDeps = new HashSet<Long>();
+    			for(BundleInfo.PackageInfo p: b.getImportedPackages()){
+    				if(p.getSuppliedBy() != -1){
+    					impDeps.add(p.getSuppliedBy());
+    				}
+    			}
+    			
+    			Set<Long> expDeps = new HashSet<Long>();
+    			for(BundleInfo.PackageInfo p: b.getExportedPackages()){
+    				if(p.getSuppliedBy() != -1){
+    					expDeps.add(p.getSuppliedBy());
+    				}
+    			}
+    			
+    			allDep.put(b.getBundleId(), dependencies);
+    			allImpDep.put(b.getBundleId(), impDeps);
+    			allExpDep.put(b.getBundleId(), expDeps);
+    		}
+    	}    	
+    	bd.setTotalDependencies(allDep);
+    	bd.setPackageImportDependencies(allImpDep);
+    	bd.setPackageExportDependencies(allExpDep);
+		addFunctionCall("setBundleDependencies",bd);   	
+    }
+    
+    public String[] getPackageImports(long bundleId){
+    	
+    	BundleInfo bi = bundleInfoProvider.getBundleForId(bundleId);
+    	
+//    	System.err.println("Got "+bi+" for "+bundleId);    	
+//    	System.err.println(".. "+bi.getSymbolicName());
+//    	System.err.println("imp packages is "+String.valueOf(bi.getExportedPackages()));
+    	
+    	ArrayList<String> imps = new ArrayList<String>();
+		for(BundleInfo.PackageInfo p: bi.getImportedPackages()){
+			//System.err.println("processing "+p.getName());
+			
+			if(p.getSuppliedBy() != -1){
+				//System.err.println("adding to list");
+				imps.add(p.getName());
+			}else{
+				//System.err.println("ignoring -1");
+			}
+		}
+		
+		//System.err.println("converting to array");
+		String[] result = new String[imps.size()];
+		if(result.length==0){
+			//System.err.println("returning no imports");
+			result = new String[]{"No Imports"};
+		}else{
+			//System.err.println("calling toArray "+imps.size());
+			result = imps.toArray(result);
+			//System.err.println("returning "+result.length+" results");
+		}
+    	return result;
+    }
+    
+    public String[] getPackageExports(long bundleId){
+    	
+    	BundleInfo bi = bundleInfoProvider.getBundleForId(bundleId);
+    	
+//    	System.err.println("Got "+bi+" for "+bundleId);    	
+//    	System.err.println(".. "+bi.getSymbolicName());    	
+//    	System.err.println("exp packages is "+String.valueOf(bi.getExportedPackages()));
+    	
+    	ArrayList<String> exps = new ArrayList<String>();
+		for(BundleInfo.PackageInfo p: bi.getExportedPackages()){
+			//System.err.println("processing "+p.getName());
+			
+			if(p.getSuppliedBy() != -1){
+				//System.err.println("adding to list");
+				exps.add(p.getName());
+			}else{
+				//System.err.println("ignoring -1");
+			}
+		}
+		
+		//System.err.println("converting to array");
+		String[] result = new String[exps.size()];
+		if(result.length==0){
+			//System.err.println("returning no exports");
+			result = new String[]{"No Exports"};
+		}else{
+			//System.err.println("calling toArray "+exps.size());
+			result = exps.toArray(result);
+			//System.err.println("returning "+result.length+" results");
+		}
+    	return result;
+    }
+	//
+	//Replacement for ScriptSessions.addFunctionCall
+	//
+	private void addFunctionCall(String name, Object... params){
+		final ScriptBuffer script = new ScriptBuffer();					
+		script.appendScript(name).appendScript("(");
+		for(int i = 0; i < params.length; i++)
+		{
+		    if(i != 0)script.appendScript(",");
+		    script.appendData(params[i]);
+		}
+		script.appendScript(");");        
+		Browser.withAllSessions(new Runnable(){ public void run(){
+			for(ScriptSession s: Browser.getTargetSessions()){
+				s.addScript(script);
+			}	 
+		}});      
+	}
+
+	@Override
+	public void addNewBundleInfo(BundleInfo b) {
+		//todo: only issue the add for the new bundle, and affected other bundles.
+		getInitialBundles();
+	}
+
+	@Override
+	public void updateBundleInfo(BundleInfo b) {
+		//todo: only issue the add for the new bundle, and affected other bundles.
+		getInitialBundles();
+	}
+}

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfo.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfo.java?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfo.java (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfo.java Wed May  5 14:43:42 2010
@@ -0,0 +1,48 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.samples.demo.prototype.info;
+
+import java.util.List;
+
+public interface BundleInfo {
+	
+   static interface PackageInfo{
+	   String getName();
+	   String getVersion();
+
+	   List<String[]> getParameters();
+	   
+	   long getSuppliedBy();
+	   
+	   long[] getSupplyCandidates();
+   }
+	
+   long getBundleId();
+   String getVersion();
+   String getSymbolicName();
+   int getState();
+   
+   long[] getDependencies();
+   
+   PackageInfo[] getImportedPackages();
+   PackageInfo[] getExportedPackages();
+   
+   String[] getRegisteredServices();
+   String[] getServicesInUse();
+}

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfoProvider.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfoProvider.java?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfoProvider.java (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/BundleInfoProvider.java Wed May  5 14:43:42 2010
@@ -0,0 +1,31 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.samples.demo.prototype.info;
+
+public interface BundleInfoProvider {
+	static interface BundleInfoListener {
+		public void addNewBundleInfo(BundleInfo b);
+		public void updateBundleInfo(BundleInfo b);
+	};
+	
+	BundleInfo[] getBundles();
+	BundleInfo getBundleForId(long id);
+	
+	public void registerBundleInfoListener(BundleInfoListener listener);
+}

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleContextInfoProvider.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleContextInfoProvider.java?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleContextInfoProvider.java (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleContextInfoProvider.java Wed May  5 14:43:42 2010
@@ -0,0 +1,151 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.samples.demo.prototype.info.impl;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.aries.application.utils.manifest.ManifestHeaderProcessor;
+import org.apache.aries.application.utils.manifest.ManifestHeaderProcessor.NameValueMap;
+import org.apache.aries.application.utils.manifest.ManifestHeaderProcessor.NameValuePair;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.BundleEvent;
+import org.osgi.framework.BundleListener;
+import org.apache.aries.samples.demo.prototype.info.BundleInfo;
+import org.apache.aries.samples.demo.prototype.info.BundleInfoProvider;
+
+public class BundleContextInfoProvider implements BundleInfoProvider, BundleListener {
+	
+	private List<BundleInfoListener> listeners=null;
+
+	private BundleContext ctx=null;
+	
+	public BundleContextInfoProvider(BundleContext ctx){
+		this.ctx = ctx;
+		this.listeners = Collections.synchronizedList(new ArrayList<BundleInfoListener>());
+		this.ctx.addBundleListener(this);
+	}
+	
+	
+	@Override
+	public BundleInfo[] getBundles() {
+		Bundle[] bundles = this.ctx.getBundles();
+		BundleInfo[] result = new BundleInfo[bundles.length];
+		
+		for(int i=0; i<bundles.length; i++){
+			result[i] = getBundleForId(bundles[i].getBundleId());
+		}
+
+		return result;
+	}
+
+	@Override
+	public void registerBundleInfoListener(BundleInfoListener listener) {
+		listeners.add(listener);
+	}
+
+
+	@Override
+	public BundleInfo getBundleForId(long id) {
+		Bundle b = ctx.getBundle(id);		
+		BundleInfoImpl bii = new BundleInfoImpl();
+		
+		HashSet<Long> allDepSet = new HashSet<Long>();
+
+		bii.setBundleId(b.getBundleId());
+		bii.setState(b.getState());
+		bii.setSymbolicName(b.getSymbolicName());
+		bii.setVersion(b.getVersion().toString());
+				
+		ArrayList<BundleInfo.PackageInfo> imps = new ArrayList<BundleInfo.PackageInfo>();
+		String importString = (String)b.getHeaders().get("Import-Package");			
+		if(importString!=null){					
+			Map<String, NameValueMap<String, String>> imports = ManifestHeaderProcessor.parseImportString(importString);
+			for(Map.Entry<String, NameValueMap<String, String>> packageImport : imports.entrySet()){
+				
+				BundleInfoImpl.PackageInfoImpl pii = new BundleInfoImpl.PackageInfoImpl();
+				pii.setName(packageImport.getKey());
+				
+				long sid=0;
+				allDepSet.add(sid);				
+				pii.setSuppliedBy(sid);
+				pii.setParameters(new ArrayList<String[]>());
+				pii.setSupplyCandidates(new long[]{});
+				pii.setVersion("");
+				
+				imps.add(pii);
+			}
+		}		
+		BundleInfo.PackageInfo[] impArr = new BundleInfo.PackageInfo[imps.size()];
+		impArr = imps.toArray(impArr);
+		bii.setImportedPackages(impArr);
+		
+		ArrayList<BundleInfo.PackageInfo> exps = new ArrayList<BundleInfo.PackageInfo>();
+		String exportString = (String)b.getHeaders().get("Export-Package");
+		if(exportString!=null){
+			List<NameValuePair<String, NameValueMap<String, String>>> exports = ManifestHeaderProcessor.parseExportString(exportString);
+			for(NameValuePair<String, NameValueMap<String, String>> export : exports){
+				
+				BundleInfoImpl.PackageInfoImpl pii = new BundleInfoImpl.PackageInfoImpl();
+				pii.setName(export.getName());		
+				
+				long sid=0;
+				allDepSet.add(sid);				
+				pii.setSuppliedBy(sid);
+				pii.setParameters(new ArrayList<String[]>());
+				pii.setSupplyCandidates(new long[]{});
+				pii.setVersion("");
+				
+				exps.add(pii);
+			}
+		}		
+		BundleInfo.PackageInfo[] expArr = new BundleInfo.PackageInfo[exps.size()];
+		expArr = exps.toArray(expArr);
+		bii.setExportedPackages(expArr);
+				
+		long[] allDepArr = new long[allDepSet.size()];
+		int i=0;
+		for(Long l: allDepSet){
+			allDepArr[i] = l;
+			i++;
+		}
+		bii.setDependencies(allDepArr);
+		
+		return bii;
+	}
+
+
+	@Override
+	public void bundleChanged(BundleEvent arg0) {
+		BundleInfo bi = getBundleForId(arg0.getBundle().getBundleId());
+		for(BundleInfoListener bil : listeners){
+			if(arg0.getType()==BundleEvent.INSTALLED){
+				bil.addNewBundleInfo(bi);
+			}else{
+				bil.updateBundleInfo(bi);
+			}
+		}
+		
+	}
+
+}

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleInfoImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleInfoImpl.java?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleInfoImpl.java (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/java/org/apache/aries/samples/demo/prototype/info/impl/BundleInfoImpl.java Wed May  5 14:43:42 2010
@@ -0,0 +1,131 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.samples.demo.prototype.info.impl;
+
+import java.util.List;
+
+import org.apache.aries.samples.demo.prototype.info.BundleInfo;
+
+public class BundleInfoImpl implements BundleInfo {
+
+	   static class PackageInfoImpl implements BundleInfo.PackageInfo{
+		   public String getName() {
+			return name;
+		}
+		public void setName(String name) {
+			this.name = name;
+		}
+		public String getVersion() {
+			return version;
+		}
+		public void setVersion(String version) {
+			this.version = version;
+		}
+		public List<String[]> getParameters() {
+			return parameters;
+		}
+		public void setParameters(List<String[]> parameters) {
+			this.parameters = parameters;
+		}
+		public long getSuppliedBy() {
+			return suppliedBy;
+		}
+		public void setSuppliedBy(long suppliedBy) {
+			this.suppliedBy = suppliedBy;
+		}
+		public long[] getSupplyCandidates() {
+			return supplyCandidates;
+		}
+		public void setSupplyCandidates(long[] supplyCandidates) {
+			this.supplyCandidates = supplyCandidates;
+		}
+		String name;
+		   String version;
+		   List<String[]> parameters;
+		   long suppliedBy;
+		   long[] supplyCandidates;
+		   
+	   }
+	
+	
+	long bundleId;
+	String version;
+	String symbolicName;
+	int state;
+	long[] dependencies;
+	PackageInfo[] importedPackages;
+	PackageInfo[] exportedPackages;
+	String[] registeredServices;
+	String[] servicesInUse;
+	public long getBundleId() {
+		return bundleId;
+	}
+	public void setBundleId(long bundleId) {
+		this.bundleId = bundleId;
+	}
+	public String getVersion() {
+		return version;
+	}
+	public void setVersion(String version) {
+		this.version = version;
+	}
+	public String getSymbolicName() {
+		return symbolicName;
+	}
+	public void setSymbolicName(String symbolicName) {
+		this.symbolicName = symbolicName;
+	}
+	public int getState() {
+		return state;
+	}
+	public void setState(int state) {
+		this.state = state;
+	}
+	public long[] getDependencies() {
+		return dependencies;
+	}
+	public void setDependencies(long[] dependencies) {
+		this.dependencies = dependencies;
+	}
+	public PackageInfo[] getImportedPackages() {
+		return importedPackages;
+	}
+	public void setImportedPackages(PackageInfo[] importedPackages) {
+		this.importedPackages = importedPackages;
+	}
+	public PackageInfo[] getExportedPackages() {
+		return exportedPackages;
+	}
+	public void setExportedPackages(PackageInfo[] exportedPackages) {
+		this.exportedPackages = exportedPackages;
+	}
+	public String[] getRegisteredServices() {
+		return registeredServices;
+	}
+	public void setRegisteredServices(String[] registeredServices) {
+		this.registeredServices = registeredServices;
+	}
+	public String[] getServicesInUse() {
+		return servicesInUse;
+	}
+	public void setServicesInUse(String[] servicesInUse) {
+		this.servicesInUse = servicesInUse;
+	}
+
+}

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/dwr.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/dwr.xml?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/dwr.xml (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/dwr.xml Wed May  5 14:43:42 2010
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN" "http://getahead.org/dwr/dwr30.dtd">
+
+<dwr>
+  <allow>
+    <create creator="new" scope="application">
+      <param name="class" value="org.apache.aries.samples.demo.prototype.ServerSideClass"/>
+    </create>
+       
+    <create creator="new" scope="application"> 
+       <param name="class" value="org.apache.aries.samples.demo.prototype.BundleDependencies"/>
+    </create>
+    <convert converter="bean" match="org.apache.aries.samples.demo.prototype.BundleDependencies" javascript="BundleDependencies"/>        
+  </allow>
+  
+  
+</dwr>

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/web.xml?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/web.xml (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/WEB-INF/web.xml Wed May  5 14:43:42 2010
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+  <display-name>DojoDwrOSGi</display-name>
+  <welcome-file-list>
+    <welcome-file>index.html</welcome-file>
+    <welcome-file>index.htm</welcome-file>
+    <welcome-file>index.jsp</welcome-file>
+    <welcome-file>default.html</welcome-file>
+    <welcome-file>default.htm</welcome-file>
+    <welcome-file>default.jsp</welcome-file>
+  </welcome-file-list>
+  
+<servlet>
+  <servlet-name>dwr-invoker</servlet-name>
+  <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
+   
+    <init-param>
+     <param-name>debug</param-name>
+     <param-value>false</param-value>
+  </init-param>
+  
+  <init-param>
+    <param-name>activeReverseAjaxEnabled</param-name>
+    <param-value>true</param-value>
+  </init-param>
+
+</servlet>
+
+<servlet-mapping>
+  <servlet-name>dwr-invoker</servlet-name>
+  <url-pattern>/dwr/*</url-pattern>
+</servlet-mapping>
+
+</web-app>

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/Thumbs.db
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/Thumbs.db?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/Thumbs.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndCopy.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndCopy.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndCopy.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndMove.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndMove.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndMove.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoCopy.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoCopy.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoCopy.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoMove.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoMove.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/dndNoMove.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_dx_gradient.gif
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_dx_gradient.gif?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_dx_gradient.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_down.gif
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_down.gif?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_down.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_up.gif
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_up.gif?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/grid_sort_up.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header_shadow.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header_shadow.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/header_shadow.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/resolved.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/resolved.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/resolved.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/row_back.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/row_back.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/row_back.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/running.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/running.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/running.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabEnabled_rotated.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabEnabled_rotated.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabEnabled_rotated.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabHover_rotated.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabHover_rotated.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/tabHover_rotated.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/td_button_down.png
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/td_button_down.png?rev=941319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/images/td_button_down.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/index.html
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/index.html?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/index.html (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/index.html Wed May  5 14:43:42 2010
@@ -0,0 +1,21 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<html>
+<body>
+  This page has <a href="/org.apache.aries.samples.demo.prototype/web/index.html">Moved</a>
+</body>
+</html>

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Bundle.js
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Bundle.js?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Bundle.js (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Bundle.js Wed May  5 14:43:42 2010
@@ -0,0 +1,325 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+dojo.provide("Bundle");
+dojo.require("TwistieSection");
+dojo.require("dojox.gfx");
+dojo.require("dojox.gfx.fx");
+dojo.require("dojox.gfx.Moveable");
+dojo.require("dojo.data.ItemFileWriteStore");
+
+dojo.declare("Bundle", null, {
+
+	//properties
+	id: null,
+	name: null,
+	state: null,	
+	version: null,
+	hidden: false,
+
+	//gfx objects
+	group: null,
+	surface: null,
+	outline: null,
+	
+	textName: null,
+	nameRule: null,
+	
+	importTwistie: null,
+	exportTwistie: null,
+	
+	textState: null,
+	stateRule: null,
+	
+	textVersion: null,
+	versionRule: null,
+	
+	//underlying datastore
+	jsonStore: null,
+	
+	//dimensions/coords
+	x: 0,
+	y: 0,
+	minWidth: 150,
+	minHeight: 80,
+	ruleOffset: 5,
+	ruleHeight: 20,
+	width: null,
+	height: null,
+	
+	linesFrom: null,
+	linesTo: null,	
+	
+	constructor: function(surface, id, name, state, version, jsonStore) {
+	this.surface=surface;
+	this.id=id;
+	this.name=name;
+	this.version=version;
+	this.state=state;
+	this.x=0;
+	this.y=0;
+	this.jsonStore=jsonStore;
+	this.height=100;
+	this.width=this.minWidth;
+	
+	this.linesFrom = new Array();
+	this.linesTo = new Array();
+	
+	this.calcWidthBasedOnContent();
+	
+	this.initGfx();
+	
+	var bundleThis = this;
+	var importCallBack = function(){
+	    var importCallback = function(data)
+	    {
+	      if (data != null && typeof data == 'object'){
+		      bundleThis.importTwistie.items = data;	 
+		      bundleThis.importTwistie.addItemsToDisplay();
+		      bundleThis.resize();
+	      }
+	    };				
+		ServerSideClass.getPackageImports(id, importCallback);
+	};
+	var exportCallBack = function(){
+	    var exportCallback = function(data)
+	    {
+	      if (data != null && typeof data == 'object'){
+		      bundleThis.exportTwistie.items = data;	 
+		      bundleThis.exportTwistie.addItemsToDisplay();
+		      bundleThis.resize();
+	      }
+	    };				
+		ServerSideClass.getPackageExports(id, exportCallback);
+	};
+	
+	//name, parentGroup, owningBundle, x, y
+	var impy = (this.ruleHeight*2)+this.ruleOffset+25;
+	var expy = impy+12;
+	this.importTwistie=new TwistieSection("Imports", this.group, this, 5, impy, importCallBack);
+	this.exportTwistie=new TwistieSection("Exports", this.group, this, 5, expy, exportCallBack);
+	
+	//update size to account for twisties.
+	this.resize();
+
+	var mover = new dojox.gfx.Moveable(this.group);
+    dojo.connect(mover, "onMoved", this, "onMoved");  
+    
+    this.group.connect("onclick",dojo.hitch(this,"onClick"));
+    this.group.connect("onmouseenter",dojo.hitch(this,"onMouseEnter"));
+    this.group.connect("onmouseleave",dojo.hitch(this,"onMouseLeave"));
+},
+initGfx: function() {
+	this.group = this.surface.createGroup();
+
+	this.outline = this.group.createRect({x: 0, y: 0, width: this.width, height: this.height, r: 5})
+	.setStroke({width: 2, color: '#808080'})
+	.setFill({type: "linear",  x1: 0, y1: 0, x2: 150, y2: 80,
+			colors: [{ offset: 0, color: "#ffff80" },{ offset: 1, color: "#ffffff" } ]});
+	
+	this.createNameRule(this.width);
+	this.createStateRule(this.width);
+	this.createVersionRule(this.width);
+
+	var stateidstr = "" + this.id + ":" + this.state;
+	
+	this.createNameText(this.name);
+	this.createStateText(stateidstr);
+	this.createVersionText(this.version);
+        
+},
+createNameText: function(name){
+	var y = (this.ruleHeight*0.5)+this.ruleOffset+5;
+	this.textName = this.group.createText({x: 5, y: y, text: name, align: "start"})
+	.setFont({family: "times", size: "12pt"})
+	.setFill("#000000");	
+},
+createVersionText: function(version){
+	var y = (this.ruleHeight*1.5)+this.ruleOffset+5;
+	this.textVersion = this.group.createText({x: 5, y: y, text: version, align: "start"})
+	.setFont({family: "times", size: "12pt"})
+	.setFill("#000000");	
+},
+createStateText: function(state){
+	var y = (this.ruleHeight*2.5)+this.ruleOffset+5;
+	this.textState = this.group.createText({x: 5, y: y, text: state, align: "start"})
+	.setFont({family: "times", size: "12pt"})
+	.setFill("#000000");	
+},
+createNameRule: function(width){
+	var y = (this.ruleHeight+this.ruleOffset);
+	this.nameRule = this.group.createLine({x1:0, y1: y, x2: width, y2: y})
+	.setStroke({width:1, color: '#808080'});
+},
+createVersionRule: function(width){
+	var y = (this.ruleHeight*2)+this.ruleOffset;
+	this.versionRule = this.group.createLine({x1:0, y1:y, x2: width, y2: y})
+	.setStroke({width:1, color: '#808080'});
+},
+createStateRule: function(width){
+	var y = (this.ruleHeight*3)+this.ruleOffset;
+	this.stateRule = this.group.createLine({x1:0, y1:y, x2: width, y2: y})
+	.setStroke({width:1, color: '#808080'});
+},
+resize: function(){
+	var width = this.width;
+	if(width < this.importTwistie.width ){
+		width = this.importTwistie.width;
+	}
+	if(width < this.exportTwistie.width ){
+		width = this.exportTwistie.width;
+	}
+	
+	var height = this.height;
+	if( this.importTwistie.height > 0 || this.exportTwistie.height > 0 ){
+		height = height + this.importTwistie.height;
+		height = height + this.exportTwistie.height;	
+	}
+	
+	var impy = (this.ruleHeight*2)+this.ruleOffset+25;
+	var expy = impy+12+this.importTwistie.height;
+	//make the export twistie appear in the correct location.
+	this.exportTwistie.updatePosition(5,(expy));
+
+	this.group.remove(this.nameRule);
+	this.group.remove(this.versionRule);
+	this.group.remove(this.stateRule);
+	this.createNameRule(width);
+	this.createStateRule(width);
+	this.createVersionRule(width);
+	this.outline.setShape({x: 0, y: 0, width: width, height: height, r: 5});
+	this.group.moveToFront();
+	
+	dojo.forEach(this.linesTo, function(line){ line.updateLine() });
+	dojo.forEach(this.linesFrom, function(line){ line.updateLine() });
+},
+calcWidthBasedOnContent: function(){
+	//adjust the width, based on the name length
+	if(this.name.length > 18){
+		var extra = this.name.length - 18;
+		extra = extra * 6;
+		var proposedNewWidth = this.minWidth + extra;
+		if(proposedNewWidth > this.width){
+			this.width = proposedNewWidth;
+		}	
+	}
+	//adjust the width, based on the version length
+	if(this.version.length > 18){
+		var extra = this.name.length - 18;
+		extra = extra * 6;
+		var proposedNewWidth = this.minWidth + extra;	
+		if(proposedNewWidth > this.width){
+			this.width = proposedNewWidth;
+		}	
+	}	
+},
+update: function(id, name, state, version) {	
+	if(this.name != name || this.state != state || this.version != version){
+		this.name = name;		
+		this.state = state;
+		this.version = version;
+		
+		this.calcWidthBasedOnContent();
+		
+		var _this=this;
+	    this.jsonStore.fetch({query: { id: this.id }, onComplete: function(item){
+	        _this.jsonStore.setValue(item[0], "name", _this.name);
+	        _this.jsonStore.setValue(item[0], "state", _this.state);
+	    }});	
+	
+		this.group.remove(this.textName);
+		this.createNameText(this.name);
+
+		this.group.remove(this.textState);
+		var stateidstr = "" + id + ":" + this.state;
+		this.createStateText(this.state);
+		
+		this.group.remove(this.versionText);
+		this.createVersionText(this.version);
+	}
+},
+moveToNewPlace: function(x, y) {
+	this.group.setTransform({dx:x, dy:y});
+	this.x = x;
+	this.y = y;
+	this.updateAfterMove();	
+},
+toggleHidden: function(){
+	var hideMe = !this.hidden;
+
+	var _this=this;
+    this.jsonStore.fetch({query: { id: this.id }, onComplete: function(item){
+        _this.jsonStore.setValue(item[0], "hidden", hideMe);
+    }});
+	
+	if(hideMe){
+		//cheat.. move it off canvas..
+		this.group.setTransform({dx:-1000, dy:-1000});	
+	}else{
+		//bring it back =) good job we remembered where it was supposed to go !
+		this.group.setTransform({dx:this.x, dy:this.y});	
+	}
+		
+	this.hidden = hideMe;
+	
+	//en/disable all lines to/from..
+	dojo.forEach(this.linesTo, function(line){  line.updateVisibility(); line.updateLine() });
+	dojo.forEach(this.linesFrom, function(line){ line.updateVisibility(); line.updateLine() });
+},
+onMoved: function(mover, shift) {   
+    this.x=this.group.matrix.dx;
+    this.y=this.group.matrix.dy;
+    
+	this.updateAfterMove();
+},
+updateAfterMove: function(){
+	
+	dojo.forEach(this.linesTo, function(line){ line.updateLine() });
+	dojo.forEach(this.linesFrom, function(line){ line.updateLine() });
+	
+	var _this=this;
+    this.jsonStore.fetch({query: { id: this.id }, onComplete: function(item){
+        _this.jsonStore.setValue(item[0], "x", _this.x);
+        _this.jsonStore.setValue(item[0], "y", _this.y);
+    }});
+},
+onClick: function() {
+	this.group.moveToFront();
+	dojox.gfx.fx.animateStroke({
+	    shape: this.outline,
+	    duration: 500,
+	    color: {start: "#6F0000", end: "#FF3030"},
+	    width: {start:10, end: 2},
+	    join:  {values: ["miter", "bevel", "round"]}
+	}).play();
+},
+onMouseEnter: function() {
+	this.outline.setStroke({width: 3, color: '#FF3030'});
+},
+onMouseLeave: function() {
+	//this.outline.setStroke({width: 2, color: '#808080'});
+	dojox.gfx.fx.animateStroke({
+	    shape: this.outline,
+	    duration: 500,
+	    color: {start: "#FF3030", end: "#808080"},
+	    width: {end: 2},
+	    join:  {values: ["miter", "bevel", "round"]}
+	}).play();
+}
+
+});

Added: incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Dependency.js
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Dependency.js?rev=941319&view=auto
==============================================================================
--- incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Dependency.js (added)
+++ incubator/aries/trunk/samples-sandbox/demo-sample/demo-prototype/src/main/resources/web/Dependency.js Wed May  5 14:43:42 2010
@@ -0,0 +1,75 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+dojo.provide("Dependency");
+dojo.require("dojox.gfx");
+dojo.require("dojox.gfx.Moveable");
+dojo.require("dojo.data.ItemFileWriteStore");
+
+dojo.declare("Dependency", null, {	
+	
+	//object properties	
+	surface: null,
+	fromBundle: null,
+	toBundle: null,
+	name: null,
+	visible: null,
+	
+	//gfx objects
+	line: null,
+	
+constructor: function(surface, name, fromBundle, toBundle) {
+	this.surface=surface;
+	this.name=name;
+	this.fromBundle=fromBundle;
+	this.toBundle=toBundle;
+
+	this.updateVisibility();
+	this.updateLine();          
+},
+updateVisibility: function(){
+	this.visible = (!this.fromBundle.hidden) && (!this.toBundle.hidden);
+	
+	if(!this.visibile){
+		if(this.line==null){
+			this.line = this.surface.createLine({x1: -1000, y1: -1000, x2: -1000, y2: -1000})
+		            .setStroke('#808080');
+		}else{
+			this.line.setShape({x1: -1000, y1: -1000, x2: -1000, y2: -1000});
+		}
+	}else{
+		updateLine();
+	}
+},
+updateLine: function(){
+	if(this.visible){
+		var fromx = this.fromBundle.x + (this.fromBundle.width / 2);
+		var fromy = this.fromBundle.y + (this.fromBundle.height / 2);
+		var tox = this.toBundle.x + (this.toBundle.width / 2);
+		var toy = this.toBundle.y + (this.toBundle.height / 2);
+		if(this.line==null){
+			this.line = this.surface.createLine({x1: fromx, y1: fromy, x2: tox, y2: toy})
+		            .setStroke('#808080');
+		}else{
+			this.line.setShape({x1: fromx, y1: fromy, x2: tox, y2: toy});
+		}
+	}
+	this.line.moveToBack();
+}
+
+});



Mime
View raw message