It forwards all method call to the delegated {@link Registrar} object,which makes it handy for customizing a Registrar object by subclassing.
Plus, SimpleContainer implements {@link Container} interface,which provides convenient API's.
In this implementation, registerStaticMethod and registerConstructor use singleton pattern. Override these methods or the {@link #defaultTransform(Component)} method todisable the singleton or get a different transformation.
Codehaus.org. @author Ben Yu
|
|
|
|