Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

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

interface XMultiServiceFactory

Base Interface
com::sun::star::uno::XInterface

Description
Factory objects support this interface for creating components by a specifying string, for example, the service name.

This specifying string is not necessarily a service name.

Example
  1. You want to load data from a location specified with a URL (file://..., http://..., ...).
  2. You get the factory that can create loader components.
  3. You call the XMultiServiceFactory::createInstance() method with arguments like "file", "http" or something else.
  4. The factory knows something about this string and specifies that
    • "file" means for example the service "com::sun::star::url::File"
    • "http" means for example the service "com::sun::star::url::Http"
    • "javascript" means for example the service "com::netscape::url::.JavaScript"
    or something else.
  5. Finally you start the download with start( URL ) at the newly created component.
See also
XInitialization
See also
XSingleServiceFactory


Known Services which Export this Interface

com::sun::star::lang::MultiServiceFactory provides a collection of implementations for services.
com::sun::star::lang::ServiceManager provides a collection of implementations for services.
com::sun::star::bridge::OleObjectFactory makes it possible to create OLE objects as UNO objects.
com::sun::star::lang::MultiServiceFactory provides a collection of implementations for services.
com::sun::star::lang::ServiceManager provides a collection of implementations for services.
com::sun::star::bridge::OleObjectFactory makes it possible to create OLE objects as UNO objects.
com::sun::star::document::FilterFactory factory to create filter objects
com::sun::star::drawing::DrawingDocumentFactory this service describes a factory for documents that can contain drawing objects
com::sun::star::ucb::HierarchyDataSource manages one or more complete sets of hierarchy data and serves as a factory for objects that provide access to a subset of the data.
com::sun::star::configuration::SimpleSetUpdate provides write access to a dynamic, homogeneous, non-hierarchical set of values or objects.
com::sun::star::configuration::ConfigurationProvider manages one, or more, complete sets of configuration data and serves as a factory for objects that provide access to a subset of the configuration.
com::sun::star::ui::ActionTriggerContainer describes a container of user actions.
com::sun::star::frame::FrameLoaderFactory factory to create frame loader

Methods' Summary

createInstance creates an instance of a component which supports the services specified by the factory.
createInstanceWithArguments creates an instance of a component which supports the services specified by the factory, and initializes the new object with given arguments.
getAvailableServiceNames

Methods' Details

createInstance
 
com::sun::star::uno::XInterface
createInstance(
[ in ] string aServiceSpecifier )
raises ( com::sun::star::uno::Exception );

Description
creates an instance of a component which supports the services specified by the factory.
createInstanceWithArguments
 
com::sun::star::uno::XInterface
createInstanceWithArguments(
[ in ] string ServiceSpecifier,
[ in ] sequence< any > Arguments )
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 given arguments.
See also
XInitialization::init
getAvailableServiceNames
 
sequence< string >
getAvailableServiceNames();
Returns
a sequence of all service identifiers which can be instantiated.

Top of Page