Skip to content

Commit

Permalink
License fixes, new parent
Browse files Browse the repository at this point in the history
  • Loading branch information
tadgh committed Feb 17, 2023
1 parent 23b7acf commit 71fa4f2
Show file tree
Hide file tree
Showing 12 changed files with 221 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching API
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.Map;
import java.util.concurrent.ExecutionException;
import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching API
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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 ca.uhn.fhir.i18n.Msg;

import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching API
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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%
*/

public interface CacheLoader<K, V> {
V load(K var1) throws Exception;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching API
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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%
*/

public interface CacheProvider<K,V> {
Cache create(long timeoutMillis);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching API
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.Map;
import java.util.concurrent.CompletableFuture;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache.caffeine;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching Caffeine
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.Map;
import java.util.function.Function;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache.caffeine;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching Caffeine
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.concurrent.TimeUnit;

import com.github.benmanes.caffeine.cache.Caffeine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache.caffeine;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching Caffeine
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.Map;

import ca.uhn.fhir.sl.cache.LoadingCache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache.guava;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching Guava
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.Map;
import java.util.concurrent.ExecutionException;
import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache.guava;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching Guava
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.concurrent.TimeUnit;

import com.google.common.cache.CacheBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package ca.uhn.fhir.sl.cache.guava;

/*-
* #%L
* HAPI FHIR - ServiceLoaders - Caching Guava
* %%
* Copyright (C) 2014 - 2023 Smile CDR, Inc.
* %%
* 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.Map;
import java.util.concurrent.ExecutionException;

Expand Down
2 changes: 1 addition & 1 deletion hapi-fhir-serviceloaders/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>hapi-deployable-pom</artifactId>
<groupId>ca.uhn.hapi.fhir</groupId>
<version>6.4.0</version>
<relativePath>../pom.xml</relativePath>
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
</parent>

<artifactId>hapi-fhir-serviceloaders</artifactId>
Expand Down

0 comments on commit 71fa4f2

Please sign in to comment.