Package org.xwiki.extension
Class DefaultExtensionDependency
- java.lang.Object
-
- org.xwiki.extension.AbstractExtensionDependency
-
- org.xwiki.extension.DefaultExtensionDependency
-
- All Implemented Interfaces:
ExtensionDependency
public class DefaultExtensionDependency extends AbstractExtensionDependency
Default implementation ofExtensionDependency
.- Since:
- 4.0M1
- Version:
- $Id: 92fd9f98c8467037897456cb6393dd887e63bd9b $
-
-
Field Summary
-
Fields inherited from class org.xwiki.extension.AbstractExtensionDependency
exclusions, id, optional, properties, repositories, versionConstraint
-
-
Constructor Summary
Constructors Constructor Description DefaultExtensionDependency(String id, VersionConstraint versionConstraint)
DefaultExtensionDependency(String id, VersionConstraint versionConstraint, boolean optional)
DefaultExtensionDependency(String id, VersionConstraint versionConstraint, boolean optional, Map<String,Object> properties)
DefaultExtensionDependency(String id, VersionConstraint versionConstraint, Map<String,Object> properties)
DefaultExtensionDependency(ExtensionDependency dependency)
Create new instance by cloning the provided one.DefaultExtensionDependency(ExtensionDependency dependency, VersionConstraint versionConstraint)
Create new instance by cloning the provided one with different version constraint.
-
Method Summary
-
Methods inherited from class org.xwiki.extension.AbstractExtensionDependency
addExclusion, addRepository, equals, getExclusions, getId, getProperties, getProperty, getProperty, getRepositories, getVersionConstraint, hashCode, isCompatible, isCompatible, isOptional, putProperty, setExclusions, setId, setProperties, setRepositories, setVersionConstraint, toString
-
-
-
-
Constructor Detail
-
DefaultExtensionDependency
public DefaultExtensionDependency(String id, VersionConstraint versionConstraint)
- Parameters:
id
- the id of the extension dependencyversionConstraint
- the version constraint of the extension dependency
-
DefaultExtensionDependency
public DefaultExtensionDependency(String id, VersionConstraint versionConstraint, boolean optional)
- Parameters:
id
- the id of the extension dependencyversionConstraint
- the version constraint of the extension dependencyoptional
- 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 dependencyversionConstraint
- the version constraint of the extension dependencyproperties
- 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 dependencyversionConstraint
- the version constraint of the extension dependencyoptional
- true if the dependency is optionalproperties
- 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 copyversionConstraint
- the version constraint to set
-
-