01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.pool;
10:
11: /**
12: * @author Gennady Krizhevsky
13: */
14: public interface ResourceFactory {
15: /**
16: * Create new resource instance
17: *
18: * @return created resource
19: */
20: Object createResource();
21:
22: /**
23: * Destroy existing resource instance
24: *
25: * @param resource
26: */
27: void destroyResource(Object resource);
28: }
|