com.sap.workspaces.module.extension

Interface IModuleLifecycle

All Superinterfaces:
IWorkspacesService

Deprecated. use AbstractModuleLifecycle instead

public interface IModuleLifecycle
extends IWorkspacesService

Provides callback methods that are invoked when the module is added to or removed from a workspace


Method Summary
 void onChangeSettings(IModuleContext moduleContext, ChangedSetting[] changedSettings)
          Deprecated. A callback invoked when one or more settings of a module instance are modified.
 void onCreate(IModuleContext context)
          Deprecated. A callback invoked when a module instance is created and added to a workspace.
 void onDelete(IModuleContext context)
          Deprecated. A callback invoked when a module instance is removed from workspace.
 

Method Detail

onCreate

void onCreate(IModuleContext context)
              throws ModuleLifecycleException
Deprecated. 
A callback invoked when a module instance is created and added to a workspace. This call is invoked after the module instance is created. In this method, the module should initialize its external resources, such as data storage.

Parameters:
context - the context for the Module instance
Throws:
ModuleLifecycleException

onDelete

void onDelete(IModuleContext context)
              throws ModuleLifecycleException
Deprecated. 
A callback invoked when a module instance is removed from workspace. This call is invoked before the module instance is removed. In this method, the module should clean up its external resources, if applicable.

Parameters:
context - the context for the Module instance
Throws:
ModuleLifecycleException

onChangeSettings

void onChangeSettings(IModuleContext moduleContext,
                      ChangedSetting[] changedSettings)
                      throws ModuleLifecycleException
Deprecated. 
A callback invoked when one or more settings of a module instance are modified.

Parameters:
moduleContext - the context for the Module instance
changedSettings -
Throws:
ModuleLifecycleException


Copyright 2011 SAP AG Complete Copyright Notice