Class DefaultExtensionDependency

java.lang.Object
org.xwiki.extension.AbstractExtensionDependency
org.xwiki.extension.DefaultExtensionDependency
All Implemented Interfaces:
ExtensionDependency

public class DefaultExtensionDependency extends AbstractExtensionDependency
Default implementation of ExtensionDependency.
Since:
4.0M1
Version:
$Id: 92fd9f98c8467037897456cb6393dd887e63bd9b $
  • Constructor Details

    • DefaultExtensionDependency

      public DefaultExtensionDependency(String id, VersionConstraint versionConstraint)
      Parameters:
      id - the id of the extension dependency
      versionConstraint - the version constraint of the extension dependency
    • DefaultExtensionDependency

      public DefaultExtensionDependency(String id, VersionConstraint versionConstraint, boolean optional)
      Parameters:
      id - the id of the extension dependency
      versionConstraint - the version constraint of the extension dependency
      optional - true if the dependency is optional
      Since:
      9.6RC1
    • DefaultExtensionDependency

      public DefaultExtensionDependency(String id, VersionConstraint versionConstraint, Map<String,Object> properties)
      Parameters:
      id - the id of the extension dependency
      versionConstraint - the version constraint of the extension dependency
      properties - the custom properties of the extension dependency
    • DefaultExtensionDependency

      public DefaultExtensionDependency(String id, VersionConstraint versionConstraint, boolean optional, Map<String,Object> properties)
      Parameters:
      id - the id of the extension dependency
      versionConstraint - the version constraint of the extension dependency
      optional - true if the dependency is optional
      properties - the custom properties of the extension dependency
      Since:
      9.6RC1
    • DefaultExtensionDependency

      public DefaultExtensionDependency(ExtensionDependency dependency)
      Create new instance by cloning the provided one.
      Parameters:
      dependency - the extension dependency to copy
      Since:
      7.3M1
    • DefaultExtensionDependency

      public DefaultExtensionDependency(ExtensionDependency dependency, VersionConstraint versionConstraint)
      Create new instance by cloning the provided one with different version constraint.
      Parameters:
      dependency - the extension dependency to copy
      versionConstraint - the version constraint to set