|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
interface ReferenceProxy
Servlet containers do not have a guaranteed order in which servlets will be destroyed like there is with initialization. This means that the servlet which created and controls an object may be destroyed while other servlets are still using it. This presents a problem in environments where common objects are placed into the ServletContext and used by more than one servlet. To solve this problem an object is placed into the ServletContext wrapped in a ReferenceProxy. Whe nthe servlet is ready to be shutdown. A proxy latch will monitor these proxies waiting for them to be gced. When all proxies have been disposed, it can be known that there are no external references to the contained components remaining.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |