public interface ExtensionDependency
Modifier and Type | Method and Description |
---|---|
default Collection<ExtensionPattern> |
getExclusions() |
String |
getId() |
Map<String,Object> |
getProperties()
Extends
ExtensionDependency standard properties. |
Object |
getProperty(String key) |
<T> T |
getProperty(String key,
T def)
Get a property.
|
Collection<ExtensionRepositoryDescriptor> |
getRepositories() |
VersionConstraint |
getVersionConstraint() |
default boolean |
isCompatible(Extension extension)
Indicate if the passed extension is compatible with this dependency.
|
default boolean |
isCompatible(ExtensionId extensionId)
Indicate if the passed extension id is compatible with this dependency.
|
default boolean |
isOptional() |
String getId()
VersionConstraint getVersionConstraint()
@Unstable default Collection<ExtensionPattern> getExclusions()
Collection<ExtensionRepositoryDescriptor> getRepositories()
Map<String,Object> getProperties()
ExtensionDependency
standard properties.
Theses are generally provided by specific repositories. For example a AETHER repository will provide AETHER Dependency representation to avoid conversion when searching for the dependency on a AETHER based repository.
Object getProperty(String key)
key
- the property key<T> T getProperty(String key, T def)
T
- type of the property valuekey
- the property keydef
- the value to return if no property is associated to the provided keydefault
of the property is not foundgetProperty(String)
default boolean isCompatible(Extension extension)
extension
- the extension to checkdefault boolean isCompatible(ExtensionId extensionId)
extensionId
- the extension to checkdefault boolean isOptional()
Copyright © 2004–2021 XWiki. All rights reserved.