To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62686





------- Additional comments from [EMAIL PROTECTED] Mon Apr  3 00:46:57 -0700 
2006 -------
I agree that it is often not possible to find the necessary information how and
if the service can be instantiated. The problem in the past was and still is
that a lot of services are context dependent, that means they can be
instantiated in the context of a writer document only or they will created
internally and are return values. This of course should be documented and the
reference can be improved a lot here.

But new style services should be clear. They can be instantiated at the global
sevice manager. The "com.sun.star.deployment.PackageRegistryBackend" service is
such a new style service and has of course constutor methds defined. If you wish
to instantiate tis service, you have to use one of the constructor methods or
use XInitialization in a second step (i would suggest the constructor). If the
DevGuide is unclear here please send me an email descrfibing which section is
unclear.

But nevertheless we have to improve the documentation and we will try to
redesign often used APIs to make use of the new UNO features. The old service
construct was only for documentation purposes which of course lead often to
confusion how this services (objects) can be used. With the new multiple
inheritance interfaces (comparable with old style services) new APIs becomes
more intuitive. 

But the end user (programmer) should be prepared to work with null objects. It
is always possible that a service can't be instantiated.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to