tmozISharedComponent Interface Reference

Shared component. More...

List of all members.

Public Member Functions

void onRegister (in tmozIException tmozException)
 Called on component registration.
void onUnregister ()
 Called on component unregistration.
void onActivateDomain (in tmozIDomain aDomain, in tmozIException tmozException)
 Called on domain activation.
void onDeactivateDomain (in tmozIDomain aDomain)
 Called on domain deactivation.

Public Attributes

readonly attribute AString name
 Name of the component.


Detailed Description

Shared component.

Each shared component have to implement this interface.


Member Function Documentation

void onActivateDomain ( in tmozIDomain  aDomain,
in tmozIException  tmozException 
)

Called on domain activation.

Method is called by framework when domain is activated. This method is called when basic frame is constructed and before any domain specific component initialization.

Parameters:
aDomain Activated domain
Exceptions:
tmozException If initialization fail component should throw exception and set error description in the tmozException object.

void onDeactivateDomain ( in tmozIDomain  aDomain  ) 

Called on domain deactivation.

Method is called by framework when domain is deactivated.

Parameters:
aDomain Deactivated domain

void onRegister ( in tmozIException  tmozException  ) 

Called on component registration.

This method is called from the registrator and allows to initialize component. Do not call it directly.

Parameters:
tmozException Exception object to return any error state
Exceptions:
tmozException If initialization fail component should throw exception and set error description in the tmozException object.

void onUnregister (  ) 

Called on component unregistration.

This method is called by component registrator when component should unregister. Do not call this method directly.

This method should not failed or throw exception.


Member Data Documentation

readonly attribute AString name

Name of the component.

Component name have to be unique.


Generated on Thu Aug 27 12:37:06 2009 for Tahiti XPCOM API