Interface StatelessObjectFactory<T>


  • public interface StatelessObjectFactory<T>
    Creates and destroys stateless objects.

    The object returned by create has dependencies injected. The PostConstruct callback, if defined, has been called.

    Version:
    $Revision: $
    Author:
    Carlo de Wolf
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T create()
      Creates a new stateless object by calling it's empty constructor, do injection and calling post-construct.
      void destroy​(T obj)
      Perform any cleanup actions on the object, such as calling the pre-destroy callback.
    • Method Detail

      • create

        T create()
        Creates a new stateless object by calling it's empty constructor, do injection and calling post-construct.
        Returns:
      • destroy

        void destroy​(T obj)
        Perform any cleanup actions on the object, such as calling the pre-destroy callback.
        Parameters:
        obj - the object