A HandlerWrapper acts as a
Handler but delegates the
Handler.handle handle method and
LifeCycle life cycle events to a delegate. This is primarily used to implement the Decorator pattern.
author: gregw
Add a handler.
This implementation of addHandler calls setHandler with the
passed handler. If this HandlerWrapper had a previous wrapped
handler, then it is passed to a call to addHandler on the passed
handler. Thus this call can add a handler in a chain of
wrapped handlers.
Parameters: handler -