Implementing a content provider proxy can be useful if the creation of
the real content provider object shall be deferred for some reason
(i.e. performance) until the first method gets called on it. Instaead of
instanciating and registering the real provider at the UCB, a proxy for
the real provider can be created and registered at the UCB.
The implementation of
::com::sun::star::uno::XInterface::queryInterface
must instanciate the real provider and return the return value
of a queryInterface call at the real provider, except for queries
for the interfaces implemented by the proxy itself. So the caller of
the queryInterface method at the proxy will get access to the real
provider in a completely transparent way.
The implementation of
::com::sun::star::uno::XInterface::queryInterface
must instanciate the real provider and return the return value
of a queryInterface call at the real provider, except for queries
for the interfaces implemented by the proxy itself. So the caller of
the queryInterface method at the proxy will get access to the real
provider in a completely transparent way.
gives access to the original content provider behind the proxy.
The implementation will instantiate the real content provider only
on demand using its UNO service name. This will load the content
providers implementation code (dynamic library), if not already done.