Gillani0 / libjoe

Automatically exported from code.google.com/p/libjoe
0 stars 0 forks source link

add bootstrapper static prepare() method, for inline processing #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Want to allow uses like the following, with the Bootstrapper not left on the 
stack for the duration of the application.

public static void main(String ... args) {
  BootstrapMain.prepare();

  // rest of program
}

Original issue reported on code.google.com by joe.j.kearney on 11 Jan 2011 at 10:59

GoogleCodeExporter commented 8 years ago

Original comment by joe.j.kearney on 11 Jan 2011 at 11:00

GoogleCodeExporter commented 8 years ago
or usage as follows, to allow static blocks to be processed with knowledge of 
bootstrapped properties.

static {
  BootstrapMain.prepare();
}

Original comment by joe.j.kearney on 11 Jan 2011 at 11:55

GoogleCodeExporter commented 8 years ago
Done. Probably not a good idea to do this from static blocks of classes that 
may be loaded later. Maybe need to write a system property to prevent 
bootstrapping a second time?

Original comment by joe.j.kearney on 14 Jan 2011 at 6:28