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.
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);
...
}
regards,
Marcel
--
Marcel Ruff
mailto:[EMAIL PROTECTED]
http://www.lake.de/home/lake/swand/
http://www.xmlBlaster.org