To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=107070
                 Issue #|107070
                 Summary|direct singleton support in Basic
               Component|api
                 Version|DEV300m65
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|FEATURE
                Priority|P3
            Subcomponent|code
             Assigned to|ab
             Reported by|jsc





------- Additional comments from [email protected] Fri Nov 20 07:47:36 +0000 
2009 -------
With OOo 3.2 we have made the concept of service constructors available in
Basic. That means it is possible to use the contractor methods directly.

The requested feature is to provide a similar shortcut for singletons as well.
In C++ or Java the user can use the generated "get" function with a component
context directly. We should provide this shortcut for singletons as well. The
context should be optional for potential later use. Currently only the default
context is used.     

This would simplify the access to singletons a lot because today the user have
to use something like this

oContext = ....
oA = oContext.getValueByName("/singletons/my.own.special.TestSingleton")

easier would be

oA = my.own.special.TestSingleton.get() 
or
oA = my.own.special.TestSingleton.get(oContext) 

This feature should be available for well defined singletons only who have an
IDL type definition (and are well documented)

---------------------------------------------------------------------
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