Package org.bgerp.cache

# Class CacheHolder<C extends Cache<C>>

java.lang.Object
org.bgerp.cache.CacheHolder<C>

Type Parameters:
  `C` - the class of held cache

public class CacheHolder<C extends Cache<C>> extends Object
Cache holder

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CacheHolder(C factory)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `flush(Connection con)`
  `C`
  `getInstance()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CacheHolder

    public CacheHolder(C factory)

- ## Method Details

  - ### getInstance

    public C getInstance()

  - ### flush

    public void flush(Connection con)