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 -
Constructor Summary
ConstructorsConstructorDescriptionSpringCloudArtifactDescriptor(YamlArtifact artifact, URI uri, File jar, List<SpringCloudServiceDescriptor> services) Creates an artifact descriptor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddService(SpringCloudServiceDescriptor service) createInstance(YamlArtifact artifact, URI uri, File jarFile) Creates a descriptor instance for a given YAMLartifactand containingjarFile.private static List<SpringCloudServiceDescriptor> createServersList(YamlArtifact artifact) Creates a list of service descriptors for the servers inartifact.getJar()Returns the underlying JAR file.Methods inherited from class de.iip_ecosphere.platform.services.AbstractArtifactDescriptor
createMapping, decreaseUsageCount, getId, getName, getServer, getServers, getService, getServiceIds, getServices, getUri, getUsageCount, increaseUsageCount
-
Field Details
-
jar
-
-
Constructor Details
-
SpringCloudArtifactDescriptor
SpringCloudArtifactDescriptor(YamlArtifact artifact, URI uri, File jar, 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 Details
-
createServersList
Creates a list of service descriptors for the servers inartifact.- Parameters:
artifact- the artifact- Returns:
- the service descriptors
-
getJar
Returns the underlying JAR file.- Returns:
- the jar file
-
createInstance
public static SpringCloudArtifactDescriptor createInstance(YamlArtifact artifact, URI uri, 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
- Overrides:
addServicein classde.iip_ecosphere.platform.services.AbstractArtifactDescriptor<SpringCloudServiceDescriptor>
-