Class WrappingCoreExtension<T extends CoreExtension>

java.lang.Object
org.xwiki.script.wrap.AbstractWrappingObject<T>
Type Parameters:
T - the extension type
All Implemented Interfaces:
Comparable<Extension>, CoreExtension, Extension

public class WrappingCoreExtension<T extends CoreExtension> extends WrappingExtension<T> implements CoreExtension
Wrap a Core extension.
Since:
4.0M1
Version:
$Id: 2f8739a33504f290d7efa80096c4accc55b550c5 $
  • Constructor Details

    • WrappingCoreExtension

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

    • getFile

      public CoreExtensionFile getFile()
      Description copied from interface: Extension
      Access the associated extension file content.
      Specified by:
      getFile in interface Extension
      Overrides:
      getFile in class AbstractWrappingExtension<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.