diff --git a/spring-cloud-stream-module-launcher/pom.xml b/spring-cloud-stream-module-launcher/pom.xml index 22a6c1362..4b5cef3b1 100644 --- a/spring-cloud-stream-module-launcher/pom.xml +++ b/spring-cloud-stream-module-launcher/pom.xml @@ -20,6 +20,10 @@ + + org.springframework + spring-core + org.springframework.boot spring-boot-loader diff --git a/spring-cloud-stream-module-launcher/src/main/java/org/springframework/cloud/stream/module/resolver/ModuleResolver.java b/spring-cloud-stream-module-launcher/src/main/java/org/springframework/cloud/stream/module/resolver/ModuleResolver.java new file mode 100644 index 000000000..f863b11f9 --- /dev/null +++ b/spring-cloud-stream-module-launcher/src/main/java/org/springframework/cloud/stream/module/resolver/ModuleResolver.java @@ -0,0 +1,33 @@ +/* + * Copyright 2015 the original author or authors. + * 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. + */ + +package org.springframework.cloud.stream.module.resolver; + +import org.springframework.core.io.Resource; + +/** + * Interface used to retrieve a Module uber-jar from a remote or local repository. + * @author David Turanski + */ +public interface ModuleResolver { + /** + * Retrieve a resource given its coordinates. + * @param groupId the groupId + * @param artifactId the artifactId + * @param version the version + * @return the resource + */ + public Resource resolve(String groupId, String artifactId, String version); +} diff --git a/spring-cloud-stream-module-launcher/src/main/java/org/springframework/cloud/stream/module/resolver/package-info.java b/spring-cloud-stream-module-launcher/src/main/java/org/springframework/cloud/stream/module/resolver/package-info.java new file mode 100644 index 000000000..eec34a34f --- /dev/null +++ b/spring-cloud-stream-module-launcher/src/main/java/org/springframework/cloud/stream/module/resolver/package-info.java @@ -0,0 +1,5 @@ +/** + * Root package of the Module support. + */ + +package org.springframework.cloud.stream.module.resolver;