public interface ArtifactBuilderProvider
ArtifactBuilders are associated with one ArtifactBuilderProvider. ArtifactBuilder logic
tends to be much cleaner when the builder is able to be *stateful*. Therefore, this service contract creates
builders on demand, rather than singleton builder use.
Register this service through a simple ServiceLoader registration. The following file should contain
the FQN of your module's ArtifactBuilderProvider implementations, one per line:
src/main/resources/META-INF/services/org.overlord.sramp.common.artifactbuilder.ArtifactBuilderProvider
Note that these are also discoverable through the OSGi service registry, if available.| Modifier and Type | Method and Description |
|---|---|
List<ArtifactBuilder> |
createArtifactBuilders(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType primaryArtifact,
ArtifactContent artifactContent)
Provide a list of providers, applicable to the given
BaseArtifactType. |
List<ArtifactBuilder> createArtifactBuilders(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType primaryArtifact, ArtifactContent artifactContent)
BaseArtifactType. The whole artifact is provided
in order to allow contextual logic.primaryArtifact - artifactContent - Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.