Package generic.cache

Interface BasicFactory<T>

All Known Implementing Classes:
CountingBasicFactory

public interface BasicFactory<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an instance of BasicFactory.
    void
    Called when clients are finished with the given item and it should be disposed.
  • Method Details

    • create

      T create() throws Exception
      Creates an instance of BasicFactory.
      Returns:
      the new instance of T
      Throws:
      Exception - any Exception encountered during creation
    • dispose

      void dispose(T t)
      Called when clients are finished with the given item and it should be disposed.
      Parameters:
      t - the item to dispose.