incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r899972 [1/2] - in /incubator/aries/trunk/samples: ./ blueprint-sample-idverifier/ blueprint-sample-idverifier/blueprint-sample-idverifier-api/ blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/ blueprint-sample-idverifier/blu...
Date Sat, 16 Jan 2010 15:20:48 GMT
Author: zoe
Date: Sat Jan 16 15:20:44 2010
New Revision: 899972

URL: http://svn.apache.org/viewvc?rev=899972&view=rev
Log:
ARIES-100 Committing sample blueprint application from Forrest Xia

Added:
    incubator/aries/trunk/samples/blueprint-sample-idverifier/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/pom.xml
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/CreditRecordOperation.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/PersonIDVerifier.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/pom.xml
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/conf/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/conf/config.properties
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.bat   (with props)
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.sh   (with props)
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/pom.xml
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/BankInfo.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditQueryRegistrationListener.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecord.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordFactory.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordOperationImpl.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordStore.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDConverter.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDVerifierClientActivator.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonBankBean.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonCreditRecords.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonalInfo.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/RandomIDChoice.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/VerifierServiceReferenceListener.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/resources/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/resources/OSGI-INF/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/resources/OSGI-INF/blueprint/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/resources/OSGI-INF/blueprint/blueprint-sample-idverifier-client.xml
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/pom.xml
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/blueprint/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/blueprint/idverifier/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/blueprint/idverifier/server/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/blueprint/idverifier/server/ComplexVerifierRegistrationListener.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/blueprint/idverifier/server/PersonIDVerifierComplexImpl.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/blueprint/idverifier/server/PersonIDVerifierSimpleImpl.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/java/org/apache/aries/samples/blueprint/idverifier/server/SimpleVerifierRegistrationListener.java
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/resources/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/resources/OSGI-INF/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/resources/OSGI-INF/blueprint/
    incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-server/src/main/resources/OSGI-INF/blueprint/blueprint-sample-idverifier-server.xml
    incubator/aries/trunk/samples/blueprint-sample-idverifier/pom.xml
    incubator/aries/trunk/samples/blueprint-sample-idverifier/readme.txt
Modified:
    incubator/aries/trunk/samples/   (props changed)
    incubator/aries/trunk/samples/pom.xml

Propchange: incubator/aries/trunk/samples/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Jan 16 15:20:44 2010
@@ -0,0 +1,4 @@
+target
+.classpath
+.project
+.settings

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/pom.xml?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/pom.xml (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/pom.xml Sat Jan 16 15:20:44 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.
+-->
+<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</groupId>
+    	<artifactId>blueprint-sample-idverifier</artifactId>
+    	<version>1.0.0-incubating-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.aries.samples.blueprint.idverifier.api</artifactId>
+    <name>Apache Aries Blueprint Sample - ID Verifier API</name>
+    <packaging>bundle</packaging>
+    <description>
+        Example blueprint application to demo inlined managers definitions.
+    </description>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+<!--
+                        <Bundle-Blueprint>/test.xml</Bundle-Blueprint>
+-->
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>    
+</project>

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/CreditRecordOperation.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/CreditRecordOperation.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/CreditRecordOperation.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/CreditRecordOperation.java Sat Jan 16 15:20:44 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.blueprint.idverifier.api;
+
+import java.util.Set;
+
+/**
+ * @author forrestxm
+ *
+ */
+public interface CreditRecordOperation {
+	public Set<String> query(String personid);
+	public boolean add(String arecord);
+	public boolean remove(String personid, String recordNO);
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/PersonIDVerifier.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/PersonIDVerifier.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/PersonIDVerifier.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-api/src/main/java/org/apache/aries/samples/blueprint/idverifier/api/PersonIDVerifier.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,32 @@
+/**
+ * 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.blueprint.idverifier.api;
+
+/**
+ * @author forrestxm
+ *
+ */
+public interface PersonIDVerifier {
+	public void setId(String id);
+	public boolean verify();
+	public String getArea();
+	public String getBirthday();
+	public String getGender();
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/pom.xml?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/pom.xml (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/pom.xml Sat Jan 16 15:20:44 2010
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2010 
+  
+   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</groupId>
+		<artifactId>blueprint-sample-idverifier</artifactId>
+		<version>1.0.0-incubating-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>org.apache.aries.samples.blueprint.idverifier.assembly</artifactId>
+	<name>Apache Aries Blueprint Sample - ID Verifier Assembly</name>
+	<packaging>pom</packaging>
+
+	<dependencies>	
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.main</artifactId>
+			<version>2.0.2</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.shell</artifactId>
+			<version>1.4.1</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.shell.tui</artifactId>
+			<version>1.4.1</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.configadmin</artifactId>
+			<version>1.2.4</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.eventadmin</artifactId>
+			<version>1.0.0</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.ops4j.pax.logging</groupId>
+			<artifactId>pax-logging-api</artifactId>
+			<version>1.4</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.ops4j.pax.logging</groupId>
+			<artifactId>pax-logging-service</artifactId>
+			<version>1.4</version>
+			<exclusions>
+				<exclusion>
+					<groupId>log4j</groupId>
+					<artifactId>log4j</artifactId>
+				</exclusion>
+			</exclusions>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.aries.blueprint</groupId>
+			<artifactId>org.apache.aries.blueprint</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.aries</groupId>
+			<artifactId>org.apache.aries.util</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.aries.jmx</groupId>
+			<artifactId>org.apache.aries.jmx.blueprint</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.aries.samples</groupId>
+			<artifactId>org.apache.aries.samples.blueprint.idverifier.api</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.aries.samples</groupId>
+			<artifactId>org.apache.aries.samples.blueprint.idverifier.server</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.aries.samples</groupId>
+			<artifactId>org.apache.aries.samples.blueprint.idverifier.client</artifactId>
+			<version>1.0.0-incubating-SNAPSHOT</version>
+		</dependency>
+
+
+	</dependencies>
+
+	<build>
+
+		<resources>
+			<resource>
+				<directory>${pom.basedir}/src/main/resources</directory>
+				<filtering>true</filtering>
+				<includes>
+					<include>**/*</include>
+				</includes>
+			</resource>
+		</resources>
+
+		<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}/bundles</outputDirectory>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+
+</project>
\ No newline at end of file

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/conf/config.properties
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/conf/config.properties?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/conf/config.properties (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/conf/config.properties Sat Jan 16 15:20:44 2010
@@ -0,0 +1,493 @@
+################################################################################
+# Copyright 2010 
+# 
+#  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.
+################################################################################
+##############################
+# Felix settings
+##############################
+org.osgi.framework.storage=./cache/
+org.osgi.framework.startlevel.beginning=10
+felix.startlevel.bundle=10
+org.osgi.framework.storage.clean=onFirstInit
+org.osgi.framework.executionenvironment=J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JRE-1.1,JavaSE-1.6,OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2
+org.osgi.framework.system.packages=org.osgi.framework; version=1.5.0, \
+ org.osgi.framework.launch; version=1.0.0, \
+ org.osgi.framework.hooks.service; version=1.0.0, \
+ org.osgi.service.packageadmin; version=1.2.0, \
+ org.osgi.service.startlevel; version=1.1.0, \
+ org.osgi.service.url; version=1.0.0, \
+ org.osgi.util.tracker; version=1.4.0 \
+ ${jre-${java.specification.version}}
+
+#
+# Java platform package export properties.
+#
+jre-1.3=, \
+ javax.accessibility; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.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.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ 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.NamingContextPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ version="1.3.0"
+
+jre-1.4=, \
+ javax.accessibility; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ 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.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.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ 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.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ javax.transaction.xa; \
+ javax.xml.parsers; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stream; \
+ 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.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version="1.4.0"
+
+jre-1.5=, \
+ javax.accessibility; \
+ javax.activity; \
+ 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.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.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.transaction; \
+ javax.transaction.xa; \
+ javax.xml; \
+ javax.xml.datatype; \
+ javax.xml.namespace; \
+ javax.xml.parsers; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stream; \
+ javax.xml.validation; \
+ 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.omg.stub.javax.management.remote.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.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version="1.5.0"
+
+jre-1.6=, \
+ 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.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.omg.stub.javax.management.remote.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; \
+ version=\"1.6.0\"
+
+##############################
+# Log setting
+##############################
+org.ops4j.pax.logging.DefaultServiceLog.level=INFO
+
+##############################
+# Client bundles to install
+##############################
+felix.auto.start.1=\
+"file:bundles/org.apache.felix.shell-1.4.1.jar" \
+"file:bundles/org.apache.felix.shell.tui-1.4.1.jar"
+felix.auto.start.2=\
+"file:bundles/pax-logging-service-1.4.jar" \
+"file:bundles/pax-logging-api-1.4.jar" \
+"file:bundles/org.apache.felix.eventadmin-1.0.0.jar" \
+"file:bundles/org.apache.felix.configadmin-1.2.4.jar" \
+"file:bundles/org.apache.aries.util-1.0.0-incubating-SNAPSHOT.jar"
+felix.auto.start.3=\
+"file:bundles/org.apache.aries.blueprint-1.0.0-incubating-SNAPSHOT.jar"
+felix.auto.start.4=\
+"file:bundles/org.apache.aries.jmx.blueprint-1.0.0-incubating-SNAPSHOT.jar"
+felix.auto.install.10=\
+"file:bundles/org.apache.aries.samples.blueprint.idverifier.server-1.0.0-incubating-SNAPSHOT.jar" \
+"file:bundles/org.apache.aries.samples.blueprint.idverifier.client-1.0.0-incubating-SNAPSHOT.jar" \
+"file:bundles/org.apache.aries.samples.blueprint.idverifier.api-1.0.0-incubating-SNAPSHOT.jar"

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.bat
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.bat?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.bat (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.bat Sat Jan 16 15:20:44 2010
@@ -0,0 +1,21 @@
+@REM ################################################################################
+@REM # Copyright 2010 
+@REM # 
+@REM #  Licensed to the Apache Software Foundation (ASF) under one or more
+@REM #  contributor license agreements.  See the NOTICE file distributed with
+@REM #  this work for additional information regarding copyright ownership.
+@REM #  The ASF licenses this file to You under the Apache License, Version 2.0
+@REM #  (the "License"); you may not use this file except in compliance with
+@REM #  the License.  You may obtain a copy of the License at
+@REM #     
+@REM #     http://www.apache.org/licenses/LICENSE-2.0
+@REM #     
+@REM #  Unless required by applicable law or agreed to in writing, software
+@REM #  distributed under the License is distributed on an "AS IS" BASIS,
+@REM #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@REM #  See the License for the specific language governing permissions and
+@REM #  limitations under the License.
+@REM ################################################################################
+@echo off
+set JAVA_OPTS=-Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
+java %JAVA_OPTS% -jar bundles/org.apache.felix.main-2.0.2.jar

Propchange: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.bat
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.sh
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.sh?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.sh (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.sh Sat Jan 16 15:20:44 2010
@@ -0,0 +1,21 @@
+#!/bin/sh
+################################################################################
+# Copyright 2010 
+# 
+#  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.
+################################################################################
+JAVA_OPTS="-Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
+java $JAVA_OPTS -jar bundles/org.apache.felix.main-2.0.2.jar

Propchange: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-assembly/src/main/resources/run.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/pom.xml?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/pom.xml (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/pom.xml Sat Jan 16 15:20:44 2010
@@ -0,0 +1,71 @@
+<!--
+    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</groupId>
+    	<artifactId>blueprint-sample-idverifier</artifactId>
+    	<version>1.0.0-incubating-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.aries.samples.blueprint.idverifier.client</artifactId>
+    <name>Apache Aries Blueprint Sample - ID Verifier Client</name>
+    <packaging>bundle</packaging>
+    <description>
+         Example blueprint application to demo inlined managers definitions.
+    </description>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId};blueprint.graceperiod:=true;blueprint.timeout:= 60000</Bundle-SymbolicName>
+                        <Bundle-Activator>org.apache.aries.samples.blueprint.idverifier.client.IDVerifierClientActivator</Bundle-Activator>
+<!--
+                        <Bundle-Blueprint>/test.xml</Bundle-Blueprint>
+-->
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>osgi</artifactId>
+            <scope>provided</scope>
+        </dependency>
+       <dependency>
+           <groupId>org.apache.aries.blueprint</groupId>
+           <artifactId>org.apache.aries.blueprint.api</artifactId>
+       </dependency>
+       <dependency>
+            <groupId>org.apache.aries.samples</groupId>
+            <artifactId>org.apache.aries.samples.blueprint.idverifier.api</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+	<dependency>
+            <groupId>org.apache.aries.samples</groupId>
+            <artifactId>org.apache.aries.samples.blueprint.idverifier.server</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+    </dependencies>
+</project>

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/BankInfo.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/BankInfo.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/BankInfo.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/BankInfo.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,98 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+/**
+ * @author forrestxm
+ *
+ */
+public class BankInfo {
+	private String bankname;
+	private String bankaddress;
+	private String banklegalpersonname;
+	private String bankregistrationnumber;
+	
+	/**
+	 * @return the bankname
+	 */
+	public String getBankname() {
+		return bankname;
+	}
+	/**
+	 * @param bankname the bankname to set
+	 */
+	public void setBankname(String bankname) {
+		this.bankname = bankname;
+	}
+	/**
+	 * @return the bandaddress
+	 */
+	public String getBankaddress() {
+		return bankaddress;
+	}
+	/**
+	 * @param bandaddress the bandaddress to set
+	 */
+	public void setBankaddress(String bankaddress) {
+		this.bankaddress = bankaddress;
+	}
+	/**
+	 * @return the banklegalpersonname
+	 */
+	public String getBanklegalpersonname() {
+		return banklegalpersonname;
+	}
+	/**
+	 * @param banklegalpersonname the banklegalpersonname to set
+	 */
+	public void setBanklegalpersonname(String banklegalpersonname) {
+		this.banklegalpersonname = banklegalpersonname;
+	}
+	/**
+	 * @return the bankregistrationnumber
+	 */
+	public String getBankregistrationnumber() {
+		return bankregistrationnumber;
+	}
+	/**
+	 * @param bankregistrationnumber the bankregistrationnumber to set
+	 */
+	public void setBankregistrationnumber(String bankregistrationnumber) {
+		this.bankregistrationnumber = bankregistrationnumber;
+	}
+	@Override
+	public String toString(){
+		System.out.println("********Start of Printing Bank Info**********");
+		System.out.println("Bank Name: " + this.getBankname());
+		System.out.println("Bank Address: " + this.getBankaddress());
+		System.out.println("Bank Legal Person: "+ this.getBanklegalpersonname());
+		System.out.println("Bank Reg. Number: "+ this.getBankregistrationnumber());
+		System.out.println("********End of Printing Bank Info**********");
+		String delimiter = ",";
+		StringBuffer sb = new StringBuffer();
+		sb.append("[");
+		sb.append("bankname=" + this.getBankname()+ delimiter);
+		sb.append("bankaddress=" + this.getBankaddress() + delimiter);
+		sb.append("banklegalpersonname="+ this.getBanklegalpersonname() + delimiter);
+		sb.append("bankregistrationnumber="+ this.getBankregistrationnumber());
+		sb.append("]");
+		return sb.toString();
+	}
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditQueryRegistrationListener.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditQueryRegistrationListener.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditQueryRegistrationListener.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditQueryRegistrationListener.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,49 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author forrestxm
+ *
+ */
+public class CreditQueryRegistrationListener {
+	
+	public void reg(CreditRecordOperationImpl svcobject, Map props){
+		//svcobject.doAfterReg();
+		System.out.println("********Registered bean "+svcobject.getClass().getName()+" as a service**********");
+		System.out.println("********Start of Printing service properties**************");
+		Set keyset = props.keySet();
+		Iterator iter = keyset.iterator();
+		while(iter.hasNext()){
+			Object keyobj = iter.next();
+			Object valueobj = props.get(keyobj);
+			System.out.println(keyobj + "=" + valueobj);			
+		}
+		System.out.println("********End of Printing service properties**************");
+	}
+	
+	public void unreg(CreditRecordOperationImpl svcobject, Map props){
+		System.out.println("********Unregistering service bean "+svcobject.getClass().getName()+"**********");
+	}
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecord.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecord.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecord.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecord.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,152 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+/**
+ * @author forrestxm
+ * 
+ */
+public class CreditRecord {
+	private String personid;
+	private String recordNO;
+	private Date happenedwhen;
+	private String recordjustification;
+	private String recorddescription;
+	
+	public CreditRecord(){
+		
+	}
+	
+	public CreditRecord(String s){
+		this(s, ":");
+	}
+
+	public CreditRecord(String s, String delimiter) {
+		convert(s, delimiter);
+	}
+
+	private void convert(String s, String delimiter) {
+		String[] pieces = s.split(delimiter);
+		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+		if (pieces.length == 5) {
+			this.setPersonid(pieces[0]);
+			this.setRecordNO(pieces[1]);
+			try {
+				this.setHappenedwhen(sdf.parse(pieces[2]));
+			} catch (ParseException e) {
+				e.printStackTrace();
+			}
+			this.setRecordjustification(pieces[3]);
+			this.setRecorddescription(pieces[4]);
+		}
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "CreditRecord [personid=" + personid + ", recordNO=" + recordNO
+				+ ", recordjustification=" + recordjustification
+				+ ", happenedwhen=" + happenedwhen + ", recorddescription="
+				+ recorddescription + "]";
+	}
+
+	/**
+	 * @return the personid
+	 */
+	public String getPersonid() {
+		return personid;
+	}
+
+	/**
+	 * @param personid
+	 *            the personid to set
+	 */
+	public void setPersonid(String personid) {
+		this.personid = personid;
+	}
+
+	/**
+	 * @return the recordNO
+	 */
+	public String getRecordNO() {
+		return recordNO;
+	}
+
+	/**
+	 * @param recordNO
+	 *            the recordNO to set
+	 */
+	public void setRecordNO(String recordNO) {
+		this.recordNO = recordNO;
+	}
+
+	/**
+	 * @return the happenedwhen
+	 */
+	public Date getHappenedwhen() {
+		return happenedwhen;
+	}
+
+	/**
+	 * @param happenedwhen
+	 *            the happenedwhen to set
+	 */
+	public void setHappenedwhen(Date happenedwhen) {
+		this.happenedwhen = happenedwhen;
+	}
+
+	/**
+	 * @return the recordjustification
+	 */
+	public String getRecordjustification() {
+		return recordjustification;
+	}
+
+	/**
+	 * @param recordjustification
+	 *            the recordjustification to set
+	 */
+	public void setRecordjustification(String recordjustification) {
+		this.recordjustification = recordjustification;
+	}
+
+	/**
+	 * @return the recorddescription
+	 */
+	public String getRecorddescription() {
+		return recorddescription;
+	}
+
+	/**
+	 * @param recorddescription
+	 *            the recorddescription to set
+	 */
+	public void setRecorddescription(String recorddescription) {
+		this.recorddescription = recorddescription;
+	}
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordFactory.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordFactory.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordFactory.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordFactory.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,53 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+/**
+ * @author forrestxm
+ * 
+ */
+public class CreditRecordFactory {
+	public static CreditRecord staticCreateBean(String record) {
+		staticcount++;
+		return new CreditRecord(record);
+	}
+
+	private String targetbeanname;
+	private static int staticcount = 0;
+	private static int dynamiccount = 0;
+
+	public CreditRecordFactory(String beanname) {
+		this.targetbeanname = beanname;
+	}
+
+	public CreditRecord dynamicCreateBean(String record) {
+		dynamiccount++;
+		return new CreditRecord(record);
+	}
+
+	public void creationStatistics() {
+		System.out.println("**********Bean factory "
+				+ this.getClass().getSimpleName()
+				+ " says goodbye!************");
+		System.out.println("**********I created " + staticcount + " "
+				+ targetbeanname + " with static factory, " + dynamiccount
+				+ " " + targetbeanname + " with dynamic factory.***********");
+	}
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordOperationImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordOperationImpl.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordOperationImpl.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordOperationImpl.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,95 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import org.apache.aries.samples.blueprint.idverifier.api.CreditRecordOperation;
+
+/**
+ * @author forrestxm
+ * 
+ */
+public class CreditRecordOperationImpl implements CreditRecordOperation {
+	private CreditRecordStore recordstore;
+
+	
+
+	public CreditRecordOperationImpl(CreditRecordStore recordstore) {
+		super();
+		this.recordstore = recordstore;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.aries.blueprint.sample.complex.client.CreditRecordOperation
+	 * #add(java.lang.String)
+	 */
+	public boolean add(String arecord) {
+		boolean b = true;
+		CreditRecord record = new CreditRecord(arecord);
+		b = recordstore.add(record);
+		return b;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.aries.blueprint.sample.complex.client.CreditRecordOperation
+	 * #query(java.lang.String)
+	 */
+	public Set<String> query(String personid) {
+		Set<String> results = new HashSet<String>();
+		
+		if (recordstore.getPersonidindex().contains(personid)){
+			Set<CreditRecord> allrecords = recordstore.getAPersonRecords(personid).getRecords();
+			for (CreditRecord arecord : allrecords){
+				results.add(arecord.toString());
+			}
+		}
+		
+		return results;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.aries.blueprint.sample.complex.client.CreditRecordOperation
+	 * #remove(java.lang.String)
+	 */
+	public boolean remove(String personid, String recordNO) {
+		boolean b = false;
+
+		Set<String> persons = recordstore.getPersonidindex();
+		if (persons.contains(personid)) {
+			CreditRecord targetproxy = new CreditRecord();
+			targetproxy.setPersonid(personid);
+			targetproxy.setRecordNO(recordNO);
+			b = recordstore.getAPersonRecords(personid).remove(targetproxy);
+		}
+		
+		return b;
+	}
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordStore.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordStore.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordStore.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/CreditRecordStore.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,115 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * @author forrestxm
+ *
+ */
+public class CreditRecordStore {
+	private Set<String> personidindex;
+	private Set<PersonCreditRecords> personrecords;
+	
+	public CreditRecordStore(Set<CreditRecord> records){		
+		init(records);
+	}
+	
+	void init(Set<CreditRecord> records){
+		personidindex = new HashSet<String>();
+		personrecords = new HashSet<PersonCreditRecords>();
+		
+		for (CreditRecord arecord : records){
+			personidindex.add(arecord.getPersonid());
+		}
+		
+		for (String personid : personidindex){
+			personrecords.add(new PersonCreditRecords(personid));
+		}
+		
+		for (CreditRecord arecord : records){
+			PersonCreditRecords target = getAPersonRecords(arecord.getPersonid());
+			if ( target != null){
+				target.add(arecord);
+			}
+		}
+	}
+	
+	public synchronized boolean add(CreditRecord arecord){
+		boolean b = false;
+		
+		PersonCreditRecords target = getAPersonRecords(arecord.getPersonid());
+		if ( target != null){
+			b = target.add(arecord);
+		} else {
+			PersonCreditRecords apersonrecords = new PersonCreditRecords(arecord.getPersonid());
+			apersonrecords.add(arecord);
+			personrecords.add(apersonrecords);
+			personidindex.add(arecord.getPersonid());
+			b = true;
+		}		
+		return b;
+		
+	}
+	
+	public synchronized boolean remove(CreditRecord arecord){
+		boolean b = false;
+		if (personidindex.contains(arecord.getPersonid())) {
+			PersonCreditRecords target = getAPersonRecords(arecord.getPersonid());
+			b = target.remove(arecord);
+			if (target.isEmpty()){
+				personidindex.remove(arecord.getPersonid());
+				personrecords.remove(target);
+			}
+		}		
+		return b;
+	}
+	
+	
+	
+	public PersonCreditRecords getAPersonRecords(String personid){
+		PersonCreditRecords result = null;
+		for (PersonCreditRecords arecord : this.personrecords){
+			if (arecord.getPersonid().equals(personid)){
+				result = arecord;
+				break;
+			}
+		}
+		return result;
+	}
+	
+	
+
+	/**
+	 * @return the personidindex
+	 */
+	public Set<String> getPersonidindex() {
+		return personidindex;
+	}
+
+	/**
+	 * @return the personrecords
+	 */
+	public Set<PersonCreditRecords> getPersonrecords() {
+		return personrecords;
+	}		
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDConverter.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDConverter.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDConverter.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDConverter.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,102 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+import org.apache.aries.samples.blueprint.idverifier.api.*;
+import org.osgi.service.blueprint.container.Converter;
+import org.osgi.service.blueprint.container.ReifiedType;
+
+/**
+ * @author forrestxm
+ * 
+ */
+public class IDConverter implements Converter {
+	
+	private PersonIDVerifier verifier;
+	private String personid;
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.osgi.service.blueprint.container.Converter#canConvert(java.lang.Object
+	 * , org.osgi.service.blueprint.container.ReifiedType)
+	 */
+	// @Override
+	public boolean canConvert(Object sourceObject, ReifiedType targetType) {
+		boolean canorcannot = false;
+		String id = null;
+		if (targetType.getRawClass() == PersonalInfo.class) {
+			if (sourceObject instanceof RandomIDChoice){
+				id = ((RandomIDChoice)sourceObject).getRandomID();
+				this.setPersonid(id);
+			}
+			//String personid = sourceObject.toString();
+			if (this.getPersonid() == null || this.getPersonid().length() != 18) return false;
+			verifier.setId(this.getPersonid());
+			canorcannot = this.verifier.verify();
+		}
+		return canorcannot;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.osgi.service.blueprint.container.Converter#convert(java.lang.Object,
+	 * org.osgi.service.blueprint.container.ReifiedType)
+	 */
+	// @Override
+	public Object convert(Object sourceObject, ReifiedType targetType)
+			throws Exception {
+		return new PersonalInfo(this.getPersonid(), verifier.getArea(), verifier.getBirthday(), verifier.getGender());
+	}	
+	
+	/**
+	 * @return the verifier
+	 */
+	public PersonIDVerifier getVerifier() {
+		return verifier;
+	}
+
+	/**
+	 * @param verifier
+	 *            the verifier to set
+	 */
+	public void setVerifier(PersonIDVerifier verifier) {
+		this.verifier = verifier;
+	}
+
+	/**
+	 * @return the personid
+	 */
+	public String getPersonid() {
+		return personid;
+	}
+
+	/**
+	 * @param personid the personid to set
+	 */
+	public void setPersonid(String personid) {
+		this.personid = personid;
+	}
+
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDVerifierClientActivator.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDVerifierClientActivator.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDVerifierClientActivator.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/IDVerifierClientActivator.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,56 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+import java.lang.management.ManagementFactory;
+
+import javax.management.MBeanServer;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author forrestxm
+ *
+ */
+public class IDVerifierClientActivator implements BundleActivator {
+	MBeanServer mbs;
+    ServiceRegistration mbsr;
+
+	/* (non-Javadoc)
+	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+	 */
+	public void start(BundleContext bundlectx) throws Exception {		
+	    
+	    mbs = ManagementFactory.getPlatformMBeanServer();
+	    mbsr = bundlectx.registerService(MBeanServer.class.getCanonicalName(), mbs, null);
+
+	}
+
+	/* (non-Javadoc)
+	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+	 */
+	public void stop(BundleContext bundlectx) throws Exception {
+//		mbs = null;
+//		mbsr = null;
+
+	}
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonBankBean.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonBankBean.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonBankBean.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonBankBean.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,158 @@
+/**
+ * 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.
+ */
+
+
+/**
+ * @author forrestxm
+ *
+ */
+
+package org.apache.aries.samples.blueprint.idverifier.client;
+
+import java.util.Set;
+
+import org.apache.aries.samples.blueprint.idverifier.api.*;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+import org.osgi.framework.ServiceReference;
+import org.osgi.service.blueprint.container.BlueprintContainer;
+
+public class PersonBankBean {
+	private PersonalInfo personinfo;
+	private BankInfo bankinfo;
+	private String bankinfobeanid;	
+	private CreditRecordOperation cro;
+	
+	private BlueprintContainer bpcontainer;
+	private BundleContext bpbundlecontext;
+	private ServiceRegistration svcreg4cro;
+	
+	public PersonBankBean(PersonalInfo info){
+		this.personinfo = info;
+	}
+	
+	/**
+	 * @return the bankinfo
+	 */
+	public BankInfo getBankinfo() {
+		return bankinfo;
+	}
+
+	/**
+	 * @param bankinfo the bankinfo to set
+	 */
+	public void setBankinfo(BankInfo bankinfo) {
+		this.bankinfo = bankinfo;
+	}
+
+	/**
+	 * @return the bankinfobeanid
+	 */
+	public String getBankinfobeanid() {
+		return bankinfobeanid;
+	}
+
+	/**
+	 * @param bankinfobeanid the bankinfobeanid to set
+	 */
+	public void setBankinfobeanid(String bankinfobeanid) {
+		this.bankinfobeanid = bankinfobeanid;
+	}
+
+	/**
+	 * @return the bpcontainer
+	 */
+	public BlueprintContainer getBpcontainer() {
+		return bpcontainer;
+	}
+
+	/**
+	 * @param bpcontainer the bpcontainer to set
+	 */
+	public void setBpcontainer(BlueprintContainer bpcontainer) {
+		this.bpcontainer = bpcontainer;
+	}
+
+	/**
+	 * @return the cro
+	 */
+	public CreditRecordOperation getCro() {
+		return cro;
+	}
+
+	/**
+	 * @param cro the cro to set
+	 */
+	public void setCro(CreditRecordOperation cro) {
+		this.cro = cro;
+	}
+
+	/**
+	 * @return the svcreg4cro
+	 */
+	public ServiceRegistration getSvcreg4cro() {
+		return svcreg4cro;
+	}
+
+	/**
+	 * @param svcreg4cro the svcreg4cro to set
+	 */
+	public void setSvcreg4cro(ServiceRegistration svcreg4cro) {
+		this.svcreg4cro = svcreg4cro;
+	}
+
+	/**
+	 * @return the bpbundlecontext
+	 */
+	public BundleContext getBpbundlecontext() {
+		return bpbundlecontext;
+	}
+
+	/**
+	 * @param bpbundlecontext the bpbundlecontext to set
+	 */
+	public void setBpbundlecontext(BundleContext bpbundlecontext) {
+		this.bpbundlecontext = bpbundlecontext;
+	}
+
+	public void startUp(){
+		System.out.println("*******Start of Printing Personal Bank/Credit Information************");		
+		this.personinfo.toString();
+		
+		// get component instance of BankInfo at runtime
+		this.setBankinfo((BankInfo)bpcontainer.getComponentInstance(this.getBankinfobeanid()));
+		this.bankinfo.toString();
+		
+		// get inlined service object from service registration object
+		ServiceReference svcref = this.svcreg4cro.getReference();
+		this.setCro((CreditRecordOperation)this.bpbundlecontext.getService(svcref));
+		
+		Set<String> allcreditrecords = cro.query(this.personinfo.getPersonid());
+		if (allcreditrecords.isEmpty()){
+			System.out.println("No credit records for id " + this.personinfo.getPersonid());
+		} else {
+			System.out.println("The credit records for id " + this.personinfo.getPersonid() + " are as follows:");
+			for (String arecord : allcreditrecords){
+				System.out.println(arecord);
+			}
+		}		
+		System.out.println("*******End of Printing Personal Bank/Credit Information**************");
+	}
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonCreditRecords.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonCreditRecords.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonCreditRecords.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonCreditRecords.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,101 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * @author forrestxm
+ *
+ */
+public class PersonCreditRecords {
+	private String personid;
+	private Set<String> recordNOs;
+	private Set<CreditRecord> records;
+	
+	public PersonCreditRecords(String personid){
+		this.personid = personid;
+		this.recordNOs = new HashSet<String>();
+		this.records = new HashSet<CreditRecord>();
+	}
+	
+	public boolean add(CreditRecord arecord){
+		boolean b = false;
+		if (arecord.getPersonid().equals(personid)){
+			if (!recordNOs.contains(arecord.getRecordNO())){
+				this.recordNOs.add(arecord.getRecordNO());
+				b = this.records.add(arecord);
+			}
+		}
+		return b;
+	}
+	
+	public boolean remove(CreditRecord arecord){
+		boolean b = false;
+		if (arecord.getPersonid().equals(this.personid)){
+			if (recordNOs.contains(arecord.getRecordNO())){
+				this.recordNOs.remove(arecord.getRecordNO());				
+				b = this.records.remove(getARecord(arecord.getRecordNO()));
+			}
+		}
+		return b;
+	}
+	
+	private CreditRecord getARecord(String recordNO){
+		CreditRecord target = null;
+		for (CreditRecord arecord : getRecords()){
+			if (arecord.getRecordNO().equals(recordNO)){
+				target = arecord;
+				break;
+			}
+		}
+		
+		return target;
+	}
+	
+	public boolean isEmpty(){
+		boolean b = false;
+		b = recordNOs.isEmpty() && records.isEmpty();		
+		return b;
+	}
+
+	/**
+	 * @return the personid
+	 */
+	public String getPersonid() {
+		return personid;
+	}	
+
+	/**
+	 * @return the recordNOs
+	 */
+	public Set<String> getRecordNOs() {
+		return recordNOs;
+	}	
+
+	/**
+	 * @return the records
+	 */
+	public Set<CreditRecord> getRecords() {
+		return records;
+	}
+	
+
+}

Added: incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonalInfo.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonalInfo.java?rev=899972&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonalInfo.java (added)
+++ incubator/aries/trunk/samples/blueprint-sample-idverifier/blueprint-sample-idverifier-client/src/main/java/org/apache/aries/samples/blueprint/idverifier/client/PersonalInfo.java Sat Jan 16 15:20:44 2010
@@ -0,0 +1,113 @@
+/**
+ * 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.blueprint.idverifier.client;
+
+
+/**
+ * @author forrestxm
+ *
+ */
+public class PersonalInfo {
+	private String personid;
+	private String area;
+	private String birthday;
+	private String gender;
+	
+	public PersonalInfo(String personid, String area, String birth, String suffix){
+		this.personid = personid;
+		this.area = area;
+		this.birthday = birth;
+		this.gender = suffix;
+	}
+	
+	/**
+	 * @return the personid
+	 */
+	public String getPersonid() {
+		return personid;
+	}
+
+	/**
+	 * @param personid the personid to set
+	 */
+	public void setPersonid(String personid) {
+		this.personid = personid;
+	}
+
+	/**
+	 * @return the area_code
+	 */
+	public String getArea() {
+		return area;
+	}
+
+	/**
+	 * @param areaCode the area_code to set
+	 */
+	public void setArea(String areaCode) {
+		area = areaCode;
+	}
+
+	/**
+	 * @return the birth_code
+	 */
+	public String getBirthday() {
+		return birthday;
+	}
+
+	/**
+	 * @param birthCode the birth_code to set
+	 */
+	public void setBirthday(String birthCode) {
+		birthday = birthCode;
+	}
+
+	/**
+	 * @return the suffix_code
+	 */
+	public String getGender() {
+		return gender;
+	}
+
+	/**
+	 * @param suffixCode the suffix_code to set
+	 */
+	public void setGender(String suffixCode) {
+		gender = suffixCode;
+	}
+	@Override
+	public String toString(){
+		System.out.println("********Start of Printing Personal Info**********");
+		System.out.println("Area: " + this.getArea());
+		System.out.println("Birthday: " + this.getBirthday());
+		System.out.println("Gender: "+ this.getGender());
+		System.out.println("********End of Printing Personal Info************");
+		String delimiter = ",";
+		StringBuffer sb = new StringBuffer();
+		sb.append("PersonInfo [");
+		sb.append("personid="+this.getPersonid()+delimiter);
+		sb.append("area=" + this.getArea()+ delimiter);
+		sb.append("birthday=" + this.getBirthday() + delimiter);
+		sb.append("gender="+ this.getGender());
+		sb.append("]");
+		return sb.toString();
+		
+	}
+
+}



Mime
View raw message