Singleton container for Java!
Usage:
-
Annotate your class with a @Singleton annotatinon (note: it takes a boolean parameter 'lazy' that indicates how to load the singleton)
-
Create and initialize Singlio object "Singlio singlio = new Singlio().initialize();"
-
Use it as you will "SimpleClass simpleClass = singlio.get(SimpleClass.class);"