Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.28 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Lightweight class-loader for custom class initialization?
  2. class Foo {
  3.     ...
  4.     static MetaData xxx;
  5.     static MetaData yyy;
  6. }
  7.        
  8. private static MetaData xxx=null;
  9. public static MetaData getXXX(){
  10.     if(xxx=null){
  11.        xxx=parse("Foo.properties");
  12.     }
  13.     return xxx;
  14. }