com.spss.psapi.extensions.common.spi

Interface ExtensionListener2

  • All Superinterfaces:
    java.util.EventListener, ExtensionListener


    public interface ExtensionListener2
    extends ExtensionListener
    Defines additional extension listener methods that listen for startup and shutdown events on the extension. One extension listener instance is created per extension so if the extension listener does not implement this interface, these methods will not be called. The path of the implementing class is specified in the "extensionListenerClass" attribute of the CommonObjects element in the extension.xml file. New extensions should implement ExtensionDelegate instead of this interface.
    Since:
    PSAPI 12.0.1
    Version:
    1.0
    Author:
    Julian Clinton
    See Also:
    ExtensionDelegate
    • Method Detail

      • startupExtension

        void startupExtension(StartupContext startupContext)
        Called at application startup when the extension is first loaded to allow an extension to initialise its global state, process command line arguments, allocate necessary resources etc. Implementing methods should not perform any interaction with the user nor perform anything requiring a UI since this method will also be called for batch mode operations.

        Note that if the method processes command line arguments it should notify the context using the notifyCommandLineArgumentHandled() method. If this does not happen, the application will assume that an argument is invalid and may abort.

        Parameters:
        startupContext - the startup context for the application
        See Also:
        StartupContext.notifyCommandLineArgumentHandled(String)
      • shutdownExtension

        void shutdownExtension(ShutdownContext shutdownContext)
        Called at application shutdown to allow an extension to tidy up its global state, deallocate any system resources etc. Implementing methods should not attempt to perform any interaction with the user nor perform anything requiring a UI since this method will also be called for batch mode operations.
        Parameters:
        shutdownContext - the context in which the application is being shutdown
      • extensionObjectChanged

        void extensionObjectChanged(ExtensionObjectEvent event,
                                  SystemSession systemSession)
        Called when an extension object has been updated.
        Parameters:
        event - the event object that describes the change
        systemSession - the session that associated with the extension object

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.