Add OSGi to Maven build

This commit is contained in:
jamesagnew 2015-09-09 07:30:57 -04:00
parent 353f815cc3
commit 2757a34a80
8 changed files with 173 additions and 63 deletions

View File

@ -0,0 +1,37 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-deployable-pom</artifactId>
<version>1.2-SNAPSHOT</version>
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
</parent>
<artifactId>hapi-fhir-osgi-core</artifactId>
<packaging>jar</packaging>
<url>http://jamesagnew.github.io/hapi-fhir/</url>
<name>HAPI FHIR - OSGi Bundle</name>
<dependencies>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId>
<version>1.2-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>

View File

@ -1,13 +1,25 @@
/**
* This software has been produced by Akana, Inc. under a professional services
* agreement with our customer. This work may contain material that is confidential
* and proprietary information of Akana, Inc. and is subject to copyright
* protection under laws of the United States of America and other countries.
* Akana, Inc. grants the customer non-exclusive rights to this material without
* any warranty expressed or implied.
*/
package ca.uhn.fhir.osgi;
package ca.uhn.fhir.osgi;
/*
* #%L
* HAPI FHIR - OSGi Bundle
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* Licensed 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.
* #L%
*/
/**
* Exception thrown from the Spring-DM/OSGi wiring. These

View File

@ -1,13 +1,25 @@
/**
* This software has been produced by Akana, Inc. under a professional services
* agreement with our customer. This work may contain material that is confidential
* and proprietary information of Akana, Inc. and is subject to copyright
* protection under laws of the United States of America and other countries.
* Akana, Inc. grants the customer non-exclusive rights to this material without
* any warranty expressed or implied.
*/
package ca.uhn.fhir.osgi;
package ca.uhn.fhir.osgi;
/*
* #%L
* HAPI FHIR - OSGi Bundle
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* Licensed 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.
* #L%
*/
import java.util.Collection;

View File

@ -1,13 +1,25 @@
/**
* This software has been produced by Akana, Inc. under a professional services
* agreement with our customer. This work may contain material that is confidential
* and proprietary information of Akana, Inc. and is subject to copyright
* protection under laws of the United States of America and other countries.
* Akana, Inc. grants the customer non-exclusive rights to this material without
* any warranty expressed or implied.
*/
package ca.uhn.fhir.osgi;
package ca.uhn.fhir.osgi;
/*
* #%L
* HAPI FHIR - OSGi Bundle
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* Licensed 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.
* #L%
*/
import java.util.Collection;

View File

@ -1,13 +1,25 @@
/**
* This software has been produced by Akana, Inc. under a professional services
* agreement with our customer. This work may contain material that is confidential
* and proprietary information of Akana, Inc. and is subject to copyright
* protection under laws of the United States of America and other countries.
* SOA Software grants the customer non-exclusive rights to this material without
* any warranty expressed or implied.
*/
package ca.uhn.fhir.osgi.impl;
package ca.uhn.fhir.osgi.impl;
/*
* #%L
* HAPI FHIR - OSGi Bundle
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* Licensed 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.
* #L%
*/
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

View File

@ -1,13 +1,25 @@
/**
* This software has been produced by Akana, Inc. under a professional services
* agreement with our customer. This work may contain material that is confidential
* and proprietary information of Akana, Inc. and is subject to copyright
* protection under laws of the United States of America and other countries.
* SOA Software grants the customer non-exclusive rights to this material without
* any warranty expressed or implied.
*/
package ca.uhn.fhir.osgi.impl;
package ca.uhn.fhir.osgi.impl;
/*
* #%L
* HAPI FHIR - OSGi Bundle
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* Licensed 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.
* #L%
*/
import java.util.ArrayList;
import java.util.Collection;
@ -35,10 +47,10 @@ public class FhirServerManager {
private static Logger log = LoggerFactory.getLogger(FhirServerManager.class);
private static final String FIRST_SERVER = "#first";
private Map<String,FhirServer> registeredServers = new ConcurrentHashMap<>();
private Map<String,Collection<Collection<Object>>> serverProviders = new ConcurrentHashMap<>();
private Map<String,FhirServer> registeredServers = new ConcurrentHashMap<String,FhirServer>();
private Map<String,Collection<Collection<Object>>> serverProviders = new ConcurrentHashMap<String,Collection<Collection<Object>>>();
private Collection<Collection<Object>> registeredProviders = Collections.synchronizedList(new ArrayList<Collection<Object>>());
private Map<String,Collection<Collection<Object>>> pendingProviders = new ConcurrentHashMap<>();
private Map<String,Collection<Collection<Object>>> pendingProviders = new ConcurrentHashMap<String,Collection<Collection<Object>>>();
private boolean haveDefaultProviders = false;
/**

View File

@ -1,13 +1,25 @@
/**
* This software has been produced by Akana, Inc. under a professional services
* agreement with our customer. This work may contain material that is confidential
* and proprietary information of Akana, Inc. and is subject to copyright
* protection under laws of the United States of America and other countries.
* Akana, Inc. grants the customer non-exclusive rights to this material without
* any warranty expressed or implied.
*/
package ca.uhn.fhir.osgi.impl;
package ca.uhn.fhir.osgi.impl;
/*
* #%L
* HAPI FHIR - OSGi Bundle
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* Licensed 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.
* #L%
*/
import java.util.Collection;

View File

@ -929,6 +929,7 @@
<module>hapi-fhir-android</module>
<module>hapi-fhir-dist</module>
<module>examples</module>
<module>hapi-fhir-osgi-core</module>
</modules>
</profile>
<profile>