org.xwiki.extension.wrap
Class WrappingCoreExtension<T extends CoreExtension>

java.lang.Object
  extended by org.xwiki.extension.wrap.AbstractWrappingObject<E>
      extended by org.xwiki.extension.wrap.WrappingExtension<T>
          extended by org.xwiki.extension.wrap.WrappingCoreExtension<T>
Type Parameters:
T - the extension type
All Implemented Interfaces:
CoreExtension, Extension

public class WrappingCoreExtension<T extends CoreExtension>
extends WrappingExtension<T>
implements CoreExtension

Wrap a Core extension.

Since:
4.0M1
Version:
$Id: 21c25f5656c8022e46491bee46397212f5820401 $

Field Summary
 
Fields inherited from interface org.xwiki.extension.CoreExtension
PKEY_GUESSED, PKEY_URL
 
Constructor Summary
WrappingCoreExtension(T extension)
           
 
Method Summary
 CoreExtensionFile getFile()
          Return extension file descriptor.
 URL getURL()
           
 boolean isGuessed()
           
 
Methods inherited from class org.xwiki.extension.wrap.WrappingExtension
getAuthors, getDependencies, getDescription, getFeatures, getId, getLicenses, getName, getProperties, getProperty, getProperty, getRepository, getSummary, getType, getWebSite
 
Methods inherited from class org.xwiki.extension.wrap.AbstractWrappingObject
equals, getWrapped, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xwiki.extension.Extension
getAuthors, getDependencies, getDescription, getFeatures, getId, getLicenses, getName, getProperties, getProperty, getProperty, getRepository, getSummary, getType, getWebSite
 

Constructor Detail

WrappingCoreExtension

public WrappingCoreExtension(T extension)
Parameters:
extension - the wrapped core extension
Method Detail

getFile

public CoreExtensionFile getFile()
Description copied from interface: Extension
Return extension file descriptor. Also allows to get the content of the file.

Specified by:
getFile in interface Extension
Overrides:
getFile in class WrappingExtension<T extends CoreExtension>
Returns:
the file of the extension

getURL

public URL getURL()
Specified by:
getURL in interface CoreExtension
Returns:
the URL pointing to the core extension file

isGuessed

public boolean isGuessed()
Specified by:
isGuessed in interface CoreExtension
Returns:
true if the extension is "guessed" which means that it's id or version are not 100% sure. It generally indicate that a jar without any technical information or partial information has been found in the classpath.


Copyright © 2004-2013 XWiki. All Rights Reserved.