Interface CurrentContainer

All Known Implementing Classes:
ActiveContainer, ApplicationLoader, TestDriver

public interface CurrentContainer
This interface declares a method to retrieve a reference to the current Container. Note that a Container which has not been closed will actively keep it alive, preventing it from shutting down when expired. Failure to call close() will eventually lead to an OutOfMemoryError. A ServerProvider should have an instance of this class injected in its constructor, and simply use the appropriate Request constructor to avoid having to worry about the keep-alive issue.
Author:
Simon Thoresen Hult