KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ve > luz > ica > jackass > instantiator > StatelessObjectInfo


1 /*
2  * Copyright (c) 2003 by The Jackass Team
3  * Licensed under the Open Software License version 2.0
4  */

5 package ve.luz.ica.jackass.instantiator;
6
7 import org.apache.commons.pool.ObjectPool;
8
9 import ve.luz.ica.jackass.component.ApplicationContext;
10 import ve.luz.ica.jackass.component.StatelessContext;
11
12 /**
13  * @author Nelson Arapé
14  */

15 class StatelessObjectInfo
16 {
17     private Class JavaDoc servantClass;
18     private ApplicationContext appContext;
19     private StatelessContext compContext;
20     private ObjectPool servantPool;
21
22     /**
23      * Constructor.
24      * @param servantClass the servant class.
25      * @param appContext the application context.
26      * @param compContext the stateless component context.
27      * @param servantPool the pool.
28      */

29     StatelessObjectInfo(Class JavaDoc servantClass, ApplicationContext appContext,
30             StatelessContext compContext, ObjectPool servantPool)
31     {
32         this.servantClass = servantClass;
33         this.appContext = appContext;
34         this.compContext = compContext;
35         this.servantPool = servantPool;
36     }
37
38     /**
39      * Returns the application context.
40      * @return the application contex.
41      */

42     public ApplicationContext getAppContext()
43     {
44         return appContext;
45     }
46
47     /**
48      * Returns the stateless component contex.
49      * @return the stateless component contex.
50      */

51     public StatelessContext getCompContext()
52     {
53         return compContext;
54     }
55
56     /**
57      * Returns the servant class.
58      * @return the servant class.
59      */

60     public Class JavaDoc getServantClass()
61     {
62         return servantClass;
63     }
64
65     /**
66      * Returns the pool object.
67      * @return the pool object.
68      */

69     public ObjectPool getServantPool()
70     {
71         return servantPool;
72     }
73
74 }
75
Popular Tags