Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleVersionedServiceDeploymentContributor
linenumberstrue
package org.apache.hadoop.gateway.deploy;
import org.apache.hadoop.gateway.topology.Service;
// An extension to base interface for backward compatibility with existing contributors.
// Service located and loaded via the base interface.
public interface VersionedServiceDeploymentContributor extends ServiceDeploymentContributor {
  // The list of versions supported by this contributor.
  // Each element is formattedFormatted according to the Maven Enforcer plugin syntax.
  // http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
  // Returning null indicates that all versions are supported.
  String[] getVersions();
}

Below is a sample of how version could be added to the topology file.

...