If you need some beans available in all your application, you do not want to have hard references and you do not want to use Spring, this class can provide you the basics features. You should use this class only if you have not too many beans to keep since it will use quite a lot of memories due to its indexing for faster retrieval. Here is the usage:
SmallBeansContainer.addBean(new MyGlobalBean()); SmallBeansContainer.getOnly(MyGlobalBean.class);
@author Simon Levesque