biouml.model.util
Interface ModuleActivator

All Known Implementing Classes:
StandardModuleActivator

public interface ModuleActivator

This class is used to activate the module during the process of module instalation. Examples of module activation actions are:

Constants CREATE_DATA_COLLECTION_BEFORE, CREATE_DATA_COLLECTION_AFTER and CREATE_DATA_COLLECTION_NEVER indicates when corresponding data collection should be created.

Pendung:
refine comments, rename to ModucleActivator

Field Summary
static int CREATE_DATA_COLLECTION_AFTER
          This consatant indicates that first createModule will be called and after that data collection corresponding to module packed in bmd file will be created.
static int CREATE_DATA_COLLECTION_BEFORE
          This consatant indicates that first the data collection corresponding to module packed in bmd file will be created, after that createModule will be called.
static int CREATE_DATA_COLLECTION_NEVER
          This consatant indicates that createModule completely responsible for creation of data collection corresponding to module packed in bmd file.
 
Method Summary
 Module createModule(javax.swing.JDialog owner, Repository parent, java.util.jar.JarFile moduleFile, java.lang.String classpath, org.apache.log4j.Category cat, CreateDataCollectionController controller)
          Creates the module with initialised internal structure from moduleFile .
 int whenCreateDataCollection()
          Indicates when module data collection should be created by ModulePackager.
 

Field Detail

CREATE_DATA_COLLECTION_BEFORE

public static final int CREATE_DATA_COLLECTION_BEFORE
This consatant indicates that first the data collection corresponding to module packed in bmd file will be created, after that createModule will be called.

See Also:
Constant Field Values

CREATE_DATA_COLLECTION_AFTER

public static final int CREATE_DATA_COLLECTION_AFTER
This consatant indicates that first createModule will be called and after that data collection corresponding to module packed in bmd file will be created.

See Also:
Constant Field Values

CREATE_DATA_COLLECTION_NEVER

public static final int CREATE_DATA_COLLECTION_NEVER
This consatant indicates that createModule completely responsible for creation of data collection corresponding to module packed in bmd file.

See Also:
Constant Field Values
Method Detail

createModule

public Module createModule(javax.swing.JDialog owner,
                           Repository parent,
                           java.util.jar.JarFile moduleFile,
                           java.lang.String classpath,
                           org.apache.log4j.Category cat,
                           CreateDataCollectionController controller)
                    throws java.lang.Exception
Creates the module with initialised internal structure from moduleFile .

Throws:
java.lang.Exception

whenCreateDataCollection

public int whenCreateDataCollection()
Indicates when module data collection should be created by ModulePackager.



Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.