Re: [api-dev] Improvements for the OOo Scripting Framework (was Re: [api-dev] A recapitulation attempt ...)

2008-07-03 Thread Rony G. Flatscher
Hi Jim, ... cut ... If one uses BSF 3.0 then one can also use JSR-223 (a.k.a. "Java 6 scripting") scripting engines, as long as their Java level does not exceed the installed Java runtime environment. --- Ad BSF 2.4: this is the "classic" scripting framework, originating in Java 1.1 (!), n

Re: [api-dev] Improvements for the OOo Scripting Framework (was Re: [api-dev] A recapitulation attempt ...)

2008-07-03 Thread Jim White
Rony G. Flatscher wrote: Hi Jim, ... P.S.: There exists a version ASF BSF 3.0 (currently in beta), which is a total rewrite from scratch matching Java's 6 "javax.script". However, that package can be deployed on Java 1.3 and up. This means that in principle it would be possible to add Java

Re: [api-dev] Improvements for the OOo Scripting Framework (was Re: [api-dev] A recapitulation attempt ...)

2008-07-03 Thread Rony G. Flatscher
Hi Jim, ... P.S.: There exists a version ASF BSF 3.0 (currently in beta), which is a total rewrite from scratch matching Java's 6 "javax.script". However, that package can be deployed on Java 1.3 and up. This means that in principle it would be possible to add Java 6 style scripting to OOo, i

[api-dev] Improvements for the OOo Scripting Framework (was Re: [api-dev] A recapitulation attempt ...)

2008-07-03 Thread Jim White
Rony G. Flatscher wrote: ... P.S.: There exists a version ASF BSF 3.0 (currently in beta), which is a total rewrite from scratch matching Java's 6 "javax.script". However, that package can be deployed on Java 1.3 and up. This means that in principle it would be possible to add Java 6 style s

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Rony G. Flatscher
Stephan Bergmann wrote: ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if using URE to access OOo (i.e. script invoked from

[api-dev] Using a self created Singleton (WAS: Loading Extension on startup of OpenOffice and use it later)

2008-07-03 Thread Tobias Krais
Hi together, I changed the name of the thread, because I progressed a lot implementing a singleton... After implementing my singleton (see Steps below) I want to retrieve it using the following Java code: -%<- mySpringLoader.get(xComponentContext); -%<- But I get an exception: ---

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Stephan Bergmann
Rony G. Flatscher wrote: Stephan Bergmann wrote: ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if using URE to access OOo (i.e. scri

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Rony G. Flatscher
Stephan Bergmann wrote: ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if using URE to access OOo (i.e. script invoked from

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Stephan Bergmann
Rony G. Flatscher wrote: Stephan Bergmann wrote: Rony G. Flatscher wrote: Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi Jim, ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String nam

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Rony G. Flatscher
Stephan Bergmann wrote: Rony G. Flatscher wrote: Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi Jim, ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Stephan Bergmann
Rony G. Flatscher wrote: Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi Jim, ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if