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 the release() method
Author:
Stuart Douglas
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    releases the instance, uninjecting and calling an pre-destroy methods as appropriate
  • Method Details

    • getInstance

      T getInstance()
      Returns:
      The managed instance
    • release

      void release()
      releases the instance, uninjecting and calling an pre-destroy methods as appropriate