interface XMultiComponentFactory in module com::sun::star::lang::

(Global Index)

Syntax

interface XMultiComponentFactory : com::sun::star::uno::XInterface ;

Description

Factory object for launching component instances giving a context from which to retrieve deployment values.

Method Summary

createInstanceWithContext Creates an instance of a component which supports the services specified by the factory.

createInstanceWithArgumentsAndContext Creates an instance of a component which supports the services specified by the factory, and initializes the new object with the given arguments and context.

getAvailableServiceNames Gets the service names of all supported services.

Known Services Which Export this Interface

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

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

Method Details



createInstanceWithContext

Syntax

com::sun::star::uno::XInterface createInstanceWithContext (
string aServiceSpecifier,
com::sun::star::uno::XComponentContext Context )
raises ( com::sun::star::uno::Exception );

Description

Creates an instance of a component which supports the services specified by the factory.

Parameter aServiceSpecifier

service name

Parameter Context

context the component instance gets its deployment values from

Returns

component instance

createInstanceWithArgumentsAndContext

Syntax

com::sun::star::uno::XInterface createInstanceWithArgumentsAndContext (
string ServiceSpecifier,
sequence< any > Arguments,
com::sun::star::uno::XComponentContext Context )
raises ( com::sun::star::uno::Exception );

Description

Creates an instance of a component which supports the services specified by the factory, and initializes the new object with the given arguments and context.

See also

XInitialization::init

Parameter ServiceSpecifier

service name

Parameter Arguments

arguments

Parameter Context

context the component instance gets its deployment values from

Returns

component instance

getAvailableServiceNames

Syntax

sequence< string > getAvailableServiceNames ();

Description

Gets the service names of all supported services.

Returns

sequence of all service names which can be instantiated.
Top of Page