org.xwiki.extension.repository
Class AbstractExtensionRepository

java.lang.Object
  extended by org.xwiki.extension.repository.AbstractExtensionRepository
All Implemented Interfaces:
ExtensionRepository
Direct Known Subclasses:
AbstractCachedExtensionRepository, AetherExtensionRepository, DefaultCoreExtensionRepository, XWikiExtensionRepository

public abstract class AbstractExtensionRepository
extends Object
implements ExtensionRepository

Base class for ExtensionRepository implementations.

Since:
4.0M1

Constructor Summary
protected AbstractExtensionRepository()
          Default constructor.
protected AbstractExtensionRepository(ExtensionRepositoryDescriptor descriptor)
           
protected AbstractExtensionRepository(ExtensionRepositoryId id)
          Deprecated. since 4.3M1 use AbstractExtensionRepository(ExtensionRepositoryDescriptor) instead
 
Method Summary
 boolean exists(ExtensionId extensionId)
           
 ExtensionRepositoryDescriptor getDescriptor()
           
 ExtensionRepositoryId getId()
           
protected  void setDescriptor(ExtensionRepositoryDescriptor descriptor)
           
protected  void setId(ExtensionRepositoryId id)
          Deprecated. since 4.3M1 use setDescriptor(ExtensionRepositoryDescriptor) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xwiki.extension.repository.ExtensionRepository
resolve, resolve, resolveVersions
 

Constructor Detail

AbstractExtensionRepository

protected AbstractExtensionRepository()
Default constructor. Used by extended classes which can't set the id in there constructor but make sure it's set later or that getId() is overwritten.


AbstractExtensionRepository

protected AbstractExtensionRepository(ExtensionRepositoryDescriptor descriptor)
Parameters:
descriptor - the repository descriptor
Since:
4.3M1

AbstractExtensionRepository

@Deprecated
protected AbstractExtensionRepository(ExtensionRepositoryId id)
Deprecated. since 4.3M1 use AbstractExtensionRepository(ExtensionRepositoryDescriptor) instead

Parameters:
id - the repository identifier
Method Detail

setDescriptor

protected void setDescriptor(ExtensionRepositoryDescriptor descriptor)
Parameters:
descriptor - the repository descriptor
Since:
4.3M1

setId

@Deprecated
protected void setId(ExtensionRepositoryId id)
Deprecated. since 4.3M1 use setDescriptor(ExtensionRepositoryDescriptor) instead

Parameters:
id - the repository identifier

getDescriptor

public ExtensionRepositoryDescriptor getDescriptor()
Specified by:
getDescriptor in interface ExtensionRepository
Returns:
the repository descriptor

getId

public ExtensionRepositoryId getId()
Specified by:
getId in interface ExtensionRepository
Returns:
the repository identifier.

exists

public boolean exists(ExtensionId extensionId)
Specified by:
exists in interface ExtensionRepository
Parameters:
extensionId - the extension identifier
Returns:
true if the extension exists in the repository