com.spss.psapi.extensions

Interface Extension



  • public interface Extension
    An interface that provides access to the information about an extension.
    Since:
    PSAPI 2.0
    Version:
    1.0
    Author:
    Julian Clinton
    • Method Detail

      • getExtensionFile

        java.io.File getExtensionFile()
        Returns the file from which this extension was loaded. This is either a JAR file or an "extension.xml" file.
        Returns:
        the file from which this extension was loaded
        See Also:
        getExtensionDirectory()
      • getExtensionDirectory

        java.io.File getExtensionDirectory()
        Returns the "home" directory for the extension. This is equivalent to calling getExtensionFile().getParentFile().
        Returns:
        the extension folder
        See Also:
        getExtensionFile()
      • getExtensionDetailAttribute

        java.lang.String getExtensionDetailAttribute(java.lang.String attribute)
        Returns the value defined by the specification file of the supplied attribute. The attribute can be one of:
        • EXTENSION_LABEL
        • EXTENSION_VERSION
        • EXTENSION_PROVIDER
        • EXTENSION_PROVIDER_TAG
        • EXTENSION_COPYRIGHT
        • EXTENSION_DESCRIPTION
        Returns:
        the attribute value or null
      • getExtensionClassLoader

        java.lang.ClassLoader getExtensionClassLoader()
        Returns the class loader created by the extension to load classes and resources specified in the specification file.
        Returns:
        the extension class loader
      • getResource

        java.lang.Object getResource(java.lang.String key,
                                   Session session)
        Attempts to look up the value of the supplied key in one of the resource bundles listed in the extension.xml.
        Parameters:
        key - the lookup key
        session - the session
        Returns:
        the value or null if the resource cannot be found
        Since:
        PSAPI 17.0
      • getExtensionListener

        ExtensionListener getExtensionListener()
        Returns the extension listener for this extension. This is either an instance of the class specified by the "extensionListenerClass" attribute if specified or an opaque system object that consumes events.
        Returns:
        the extension listener for this extension

Copyright © 2014 Integral Solutions Ltd. All Rights Reserved.