The factories are accessed with a service name. It is possible to
access the factories with their implementation name, but that should be
avoided.
The first argument of the XInitialization::initialization
method may be a reference to a simple registry ( XSimpleRegistry ).
If it is not initialized with a registry, then the default registry
"com::sun::star::registry::DefaultRegistry" is used. If this registry is not
found, then the manager works without a registry.
You can get the current registry with
XPropertySet::getPropertyValue .
The interfaces added through the XSet
interfaces should support the following interfaces:
- XServiceInfo
- is used to support access through the implementation with
service names.
- XSingleServiceFactory
- is used to instantiate components from the implementation.
- XPropertySet (optional)
- provides additional information on the implementation.
- XComponent (optional)
- The service manager calls dispose on the registered
factories. The service manager adds a listener to this
factory. The factory is automatically revoked if the
disposing listener is notified.