01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.pool.thread;
09:
10: import org.huihoo.jfox.pool.ObjectPool;
11:
12: /**
13: * a thread test wrap the Threadable tast
14: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
15: */
16:
17: class ThreadTask {
18: private Threadable task = null;
19: private ObjectPool pool = null;
20:
21: public ThreadTask(Threadable task, ObjectPool pool) {
22: this .task = task;
23: this .pool = pool;
24: }
25:
26: Threadable getTask() {
27: return task;
28: }
29:
30: public ObjectPool getPool() {
31: return pool;
32: }
33: }
|