[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] How global's Global?



On Sat, 11 May 2002, Marcel Ruff wrote:

>Heinrich Götzger wrote:
>> Hi,
>>
>> I just tried to get used to the new Global-Class introduced recently in
>> xmlBlaster.
>>
>> As I learned in 'xmlBlaster/demo/javaclients/HelloWorld3.java' it has to
>> be passed to the invoked methods and classes. Is there a way to get the
>> content of Global somewhere in the middle of the programm without taking
>> it along all the time?
>>
>> For example by just calling something like
>> Global glob = Global.emerge();
>
>Heinrich,
>
>you can now access the *first* created global instance
>at any place with:
>
>   Global glob = Global.instance();
>
>I don't recommend it, but in a Swing-GUI application
>this may be a reasonable solution.

That's where I'd like it to use without taking it all aong in my
stack-pack.

Thanks for your great performance and quick adaptation of special needs.

regards

Heinrich


>
>Take care to initialize Global before the fist
>access if you want to pass some command line arguments:
>
>   static void main(String[] args) {
>      new Global(args);
>      ...
>   }
>