Class SpringCloudArtifactDescriptor
- java.lang.Object
-
- de.iip_ecosphere.platform.services.AbstractArtifactDescriptor<SpringCloudServiceDescriptor>
-
- de.iip_ecosphere.platform.services.spring.SpringCloudArtifactDescriptor
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.services.ArtifactDescriptor
public class SpringCloudArtifactDescriptor extends de.iip_ecosphere.platform.services.AbstractArtifactDescriptor<SpringCloudServiceDescriptor>
A specific artifact descriptor for spring cloud services. [public for testing]- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filejar
-
Constructor Summary
Constructors Constructor Description SpringCloudArtifactDescriptor(YamlArtifact artifact, java.net.URI uri, java.io.File jar, java.util.List<SpringCloudServiceDescriptor> services)Creates an artifact descriptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddService(SpringCloudServiceDescriptor service)static SpringCloudArtifactDescriptorcreateInstance(YamlArtifact artifact, java.net.URI uri, java.io.File jarFile)Creates a descriptor instance for a given YAMLartifactand containingjarFile.private static java.util.List<SpringCloudServiceDescriptor>createServersList(YamlArtifact artifact)Creates a list of service descriptors for the servers inartifact.java.io.FilegetJar()Returns the underlying JAR file.
-
-
-
Constructor Detail
-
SpringCloudArtifactDescriptor
SpringCloudArtifactDescriptor(YamlArtifact artifact, java.net.URI uri, java.io.File jar, java.util.List<SpringCloudServiceDescriptor> services)
Creates an artifact descriptor.- Parameters:
artifact- the Yaml artifacturi- the URI the descriptor was loaded from (jarmay be a local file instead)jar- the underlying jar artifactservices- the associated services
-
-
Method Detail
-
createServersList
private static java.util.List<SpringCloudServiceDescriptor> createServersList(YamlArtifact artifact)
Creates a list of service descriptors for the servers inartifact.- Parameters:
artifact- the artifact- Returns:
- the service descriptors
-
getJar
public java.io.File getJar()
Returns the underlying JAR file.- Returns:
- the jar file
-
createInstance
public static SpringCloudArtifactDescriptor createInstance(YamlArtifact artifact, java.net.URI uri, java.io.File jarFile)
Creates a descriptor instance for a given YAMLartifactand containingjarFile.- Parameters:
artifact- the artifact parsed from a YAML descriptoruri- the URI thejarFilewas loaded from (jarFilemay be a local file)jarFile- the JAR file containing the artifact- Returns:
- the spring-specific descriptor
-
addService
protected void addService(SpringCloudServiceDescriptor service)
- Overrides:
addServicein classde.iip_ecosphere.platform.services.AbstractArtifactDescriptor<SpringCloudServiceDescriptor>
-
-