Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: lang ::

interface 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 to return the same instance for the same set of parameters, and it can do so by implementing the factory itself.

Developers Guide
WritingUNO - XInitialization
WritingUNO - Core Interfaces to Implement

Methods' Summary
initialize initializes the object.  
Methods' Details
initialize
void
initialize( [in] sequence< any >  aArguments )
raises( ::com::sun::star::uno::Exception );

Description
initializes the object.

It should be called directly after the object is created.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.