componentmanager.java

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

JAVA
57
字号
/*
 * ComponentManager.java
 *
 * Created on 2001年7月13日, 下午1:16
 */

package com.gs.db;
import java.util.*;

/**
 * ComponentManager defines the system functions for component 
 * registration information. You may use getComponent method to 
 * retrieve a component and then get component agent's instance,
 * from which you may have access to the component-specific calls.
 * 
 * @see IofficeComponent, IofficeComponentAgent
 */
 
public interface ComponentManager {
    
    /**
     * Register a new component into Inter-Office System
     * @param componentName the name of the component, must be unique
     * @param componentAgentClassName the name of the component agent class
     * @param entryURL the URL used to entry the component services
     * @param weight  the importance of the component
     *
     * @throw UnauthorizedException if not authorized to do so,
     * @ throw ComponentRegistrationException if registration fails
     */
    public IofficeComponent registerComponent( String componentName,String componentAgentClassName, 
            String entryURL, String displayName, int weight, int desktop ) 
        throws UnauthorizedException,ComponentRegistrationException;
    
    
    /**
     * Get a IofficeComponent object by the component name
     * <i>ComponentNotFoundException</i> will be thrown if the
     * name is invalid.
     * @param componentName the name of the component
     */
    public IofficeComponent getComponent(String componentName) throws ComponentNotFoundException;
    
    /**
     * Return the total number of components registered
     */
    public int getComponentCount();
    
    /**
     * Return an Iterator, de facto,a ComponentIterator(Proxy) object,
     * by which you can get each component
     */
    public Iterator getComponents();

}

⌨️ 快捷键说明

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