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

(Global Index)

Syntax

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

Description

A factory supports this interface if the component which is created by this factory implements the service specification defined by the factory.

See also

XInitialization

See also

XMultiServiceFactory

Method Summary

createInstanceWithContext Creates an instance of a component.

createInstanceWithArgumentsAndContext Creates an instance of a component and initializes the new object with the given arguments and context.

Method Details



createInstanceWithContext

Syntax

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

Description

Creates an instance of a component.

Parameter Context

context the component instance gets its deployment values from

Returns

component instance

createInstanceWithArgumentsAndContext

Syntax

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

Description

Creates an instance of a component and initializes the new object with the given arguments and context.

See also

XInitialization::init

Parameter Arguments

arguments

Parameter Context

context the component instance gets its deployment values from

Returns

component instance
Top of Page