Overview | Module | Use | Devguide | Index

Methods' Summary | Methods' Details | Attributes' Summary | Attributes' Details

:: com :: sun :: star :: lang ::
interface XInitialization
  Base Hierarchy
      ::com::sun::star::uno::XInterface
       |
       +-XInitialization
Description initializes an object directly after its creation. This interface works together with factories. If you want to initialize the object after creation, you should support this interface and you may support other interfaces which offer type-safe initialization methods. Instead of calling XSingleComponentFactory::createInstanceWithContext and later initialize(), you should call XSingleComponentFactory::createInstanceWithArgumentsAndContext to pass the arguments to the instance. The reason is, that a component may want return the same instance for the same set of parameters, and it can do so by implementing the factory itself. Developers Guide 4.4.6 Writing UNO Components - Core Interfaces to Implement - XInitialization 4.4 Writing UNO Components - Core Interfaces to Implement

Methods' Summary
initialize | initializes the object.

Methods' Details
initialize
void initialize( | [in] sequence< any > raises( | aArguments ) ::com::sun::star::uno::Exception );
Description initializes the object. It should be called directly after the object is created.

Top of Page

Copyright © 2003 Sun Microsystems, Inc.