Package io.undertow.servlet.api
Interface InstanceHandle<T>
-
- All Known Implementing Classes:
ImmediateInstanceHandle
public interface InstanceHandle<T>
A handle for a container managed instance. When the servlet container is done with it it should call therelease()
method- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getInstance()
void
release()
releases the instance, uninjecting and calling an pre-destroy methods as appropriate
-
-
-
Method Detail
-
getInstance
T getInstance()
- Returns:
- The managed instance
-
release
void release()
releases the instance, uninjecting and calling an pre-destroy methods as appropriate
-
-