Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


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

interface XMultiServiceFactory
Description
Factories support this interface creating instances giving a name, e.g. a service name.

Note: Although this interface deals with the notion of "services", this is not generally be meant. In general this interface can be used for all kinds of factories for all kinds of instances, indeed not only UNO services.

Developers Guide
ProUNO - Service Manager and Component Context

Methods' Summary
createInstance Creates an instance classified by the specified name.  
createInstanceWithArguments Creates an instance classified by the specified name and passes the arguments to that instance.  
getAvailableServiceNames Provides the available names of the factory to be used to create instances.  
Methods' Details
createInstance
::com::sun::star::uno::XInterface
createInstance( [in] string  aServiceSpecifier )
raises( ::com::sun::star::uno::Exception );

Description
Creates an instance classified by the specified name.
Parameter aServiceSpecifier
classified name of instance
Returns
instance
createInstanceWithArguments
::com::sun::star::uno::XInterface
createInstanceWithArguments( [in] string  ServiceSpecifier,
[in] sequence< any >  Arguments )
raises( ::com::sun::star::uno::Exception );

Description
Creates an instance classified by the specified name and passes the arguments to that instance.
Parameter ServiceSpecifier
classified name of instance
Parameter Arguments
arguments passed to the instance
Returns
instance
getAvailableServiceNames
sequence< string >
getAvailableServiceNames();

Description
Provides the available names of the factory to be used to create instances.
Returns
sequence of all names
Top of Page

Apache Software Foundation

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

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