org.xwiki.extension
Interface ExtensionDependency

All Known Implementing Classes:
AbstractExtensionDependency, DefaultExtensionDependency

public interface ExtensionDependency

An extension dependency.

Since:
4.0M1
Version:
$Id: 2699658f2c71cc796f61d618015452fe10986e14 $

Method Summary
 String getId()
           
 Map<String,Object> getProperties()
          Extends ExtensionDependency standard properties.
 Object getProperty(String key)
           
<T> T
getProperty(String key, T def)
          Get a property.
 VersionConstraint getVersionConstraint()
           
 

Method Detail

getId

String getId()
Returns:
the id (or feature) of the target extension

getVersionConstraint

VersionConstraint getVersionConstraint()
Returns:
the version constraint of the target extension

getProperties

Map<String,Object> getProperties()
Extends 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.

Returns:
the properties

getProperty

Object getProperty(String key)
Parameters:
key - the property key
Returns:
the property value

getProperty

<T> T getProperty(String key,
                  T def)
Get a property.

Type Parameters:
T - type of the property value
Parameters:
key - the property key
def - the value to return if no property is associated to the provided key
Returns:
the property value or default of the property is not found
See Also:
getProperty(String)


Copyright © 2004-2013 XWiki. All Rights Reserved.