All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface semper.util.install.BlockInstallHook

public interface BlockInstallHook
A block that wants to take block-specific action during installation of a module into that block, must implement this interface and be registered with the Installer application. Registration with the Installer application is not automated yet. Currently, the following blocks are registered:
  • payment

    Version:
    $Revision: 1.1 $ $Date: 1997/04/25 12:26:41 $
    Author:
    N. Asokan ([email protected])
    See Also:
    Installer, Installer

    Method Index

     o checkProperties(Properties)
    Sanity check properties.
     o install(Properties, String)
    Take block specific actions during module installation
     o uninstall(Properties)
    Uninstall the module specified by the properties object (usually the same Properties object used during the installation of the module)

    Methods

     o install
     public abstract void install(Properties props,
                                  String pathname) throws InstallerException
    
    Take block specific actions during module installation

    Parameters:
    props - properties object initialised from the props.txt file in the the distribution directory
    pathname - pathname to the distribution directory
    Throws: InstallerException
    when installation failed
     o uninstall
     public abstract void uninstall(Properties props) throws InstallerException
    
    Uninstall the module specified by the properties object (usually the same Properties object used during the installation of the module)

    Parameters:
    props - Properties object representing the module
    Throws: InstallerException
    when uninstall failed
     o checkProperties
     public abstract boolean checkProperties(Properties props)
    
    Sanity check properties. The block may require certain properties to be set (e.g. the payment block requires the property purseClassName to be set. This method must check the props object to ensure that the mandatory properties are set.

    Parameters:
    props - Properties object representing the module being installed
    Returns:
    true/false

    All Packages  Class Hierarchy  This Package  Previous  Next  Index