Beispiel #1
0
 /**
  * Releases domain back to a pool. Sub-classes may override this method, if desired.
  *
  * @param domain <code>AbstractDomain</code> instance to return to a pool.
  */
 protected void releaseDomain(AbstractDomain domain) {
   ObjectPoolFactory.returnObject(domain);
 }
Beispiel #2
0
 /**
  * Fetches requisite domain from a pool. Subclasses may override this method to add more
  * functionality.
  *
  * @param className className of domain to fetch.
  * @return The domain value
  */
 protected AbstractDomain getDomain(String className) {
   AbstractDomain domain = (AbstractDomain) ObjectPoolFactory.getObject(className);
   return domain;
 }