org.directwebremoting.guice.util
Interface ContextCloseHandler<T>

All Known Implementing Classes:
AbstractContextCloseHandler

public interface ContextCloseHandler<T>

Called for each instance in a context when the context is closed.

Author:
Tim Peierls [tim at peierls dot net]

Method Summary
 void close(T object)
          Action to take when the context containing object is closed.
 java.lang.Class<T> type()
          The type of objects handled by this handler.
 

Method Detail

close

void close(T object)
           throws java.lang.Exception
Action to take when the context containing object is closed.

Throws:
java.lang.Exception

type

java.lang.Class<T> type()
The type of objects handled by this handler.


Copyright 2008