iofficecomponentagent.java

来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· Java 代码 · 共 70 行

JAVA
70
字号
/*
 * IofficeComponentAgent.java
 *
 * Created on 2001年7月13日, 下午1:00
 */

package com.gs.db;

/**
 * Each InterOffice Component Must provide an agentClass
 * which implements this INTERFACE. The interface defines
 * a series of callback function, through with the interoffice 
 * kernel notifies each component that something happens.
 * @see IofficeComponent, IofficeFactory
 */
public interface IofficeComponentAgent {
    /**
     * called by kernel when installing the component. The component should 
     * perform newborn initialization here, such as creating  and initializing 
     * datebase tables,etc.
     * @throws ComponentAgentException if fatal error occurs in the call
     */
    public void onInstall () throws ComponentAgentException;
    
    /**
     * called by kernel when enable the inactive component. 
     *
     * @throws ComponentAgentException if fatal error occurs in the call
     */
    public void onEnable() throws ComponentAgentException;

    /**
     * called by kernel when disable the active component. 
     *
     * @throws ComponentAgentException if fatal error occurs in the call
     */
    public void onDisable() throws ComponentAgentException;
    
    /**
     * called by kernel just the moment when the user is going to be deleted
     *
     * @throws ComponentAgentException if fatal error occurs in the call
     */    
    public void onDeletingUser( int userid ) throws ComponentAgentException;
    
    /**
     * called by kernel just the moment when the user had been deleted
     *
     * @throws ComponentAgentException if fatal error occurs in the call
     */    
    public void onUserDeleted( int userid ) throws ComponentAgentException;

    /**
     * called by kernel when the component is being unstalled. 
     *
     * @throws ComponentAgentException if fatal error occurs in the call
     */
    public void onUninstall() throws ComponentAgentException;
    
    /** 
     * Get name of component vendor 
     * @return vendor name of the component
     */
    public String getVendor( );
    public String getDescription();
    public int getMajorVersion();
    public int getMinorVersion();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?