Issue 118815 - [API] Deprecate "com.sun.star.configuration.bootstrap.BootstrapContext"
Summary: [API] Deprecate "com.sun.star.configuration.bootstrap.BootstrapContext"
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P5 (lowest) Normal
Target Milestone: ---
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 18:07 UTC by Oliver Brinzing
Modified: 2017-05-20 09:32 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2012-01-18 18:07:04 UTC
the following vb script will fail with aoo3.
it worked with oo 3.2.

workaround for aoo3.4:
use "Set oContext = oSM.DefaultContext"
instead of "Set oContext = oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")"

' vb script
Set oSM = WScript.CreateObject("com.sun.star.ServiceManager")
Set oContext = oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")
Set oTDM = oContext.getValueByName("/singletons/com.sun.star.reflection.theTypeDescriptionManager")
MsgBox "HARD_SPACE: " & oTDM.getByHierarchicalName("com.sun.star.text.ControlCharacter.HARD_SPACE")
Comment 1 Ariel Constenla-Haile 2012-01-19 01:33:32 UTC
(In reply to comment #0)
> the following vb script will fail with aoo3.
> it worked with oo 3.2.
> 
> workaround for aoo3.4:
> use "Set oContext = oSM.DefaultContext"
> instead of "Set oContext =
> oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")"


I don't get the issue here.
Is it that you can't instantiate this service in particular?
If so, testing in Basic shows this service has been removed:

Sub Main
	Dim oBootstrapContext
	BootstrapContext = CreateUnoService("com.sun.star.configuration.bootstrap.BootstrapContext")
End Sub

it has been removed when the cfgmgr was rewritten.
Comment 2 Oliver Brinzing 2012-01-19 08:26:02 UTC
> Is it that you can't instantiate this service in particular?

yes, seems to be removed in aoo3.4. if removal of this service 
was intended, i suggest to fix the api documentation, for example:

http://www.openoffice.org/api/docs/common/ref/com/sun/star/configuration/bootstrap/BootstrapContext.html
Comment 3 Ariel Constenla-Haile 2012-01-19 12:42:00 UTC
Fixed in revision 1233320