KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > management > browser > model > service > ConnectionServiceProvider


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.management.browser.model.service;
8
9 import java.beans.beancontext.BeanContextServices JavaDoc;
10 import java.util.Iterator JavaDoc;
11 import java.util.Vector JavaDoc;
12
13 import org.ejtools.beans.beancontext.CustomBeanContextServiceProvider;
14
15 /**
16  * Description of the Class
17  *
18  * @author Laurent Etiemble
19  * @version $Revision: 1.6 $
20  * @todo Javadoc to complete
21  */

22 public class ConnectionServiceProvider extends CustomBeanContextServiceProvider
23 {
24    /** Description of the Field */
25    protected ConnectionService service = null;
26
27
28    /** Constructor for the ConnectionServiceProvider object */
29    public ConnectionServiceProvider()
30    {
31       this.service = new MEJBConnectionService();
32    }
33
34
35    /**
36     * Getter for the currentServiceSelectors attribute
37     *
38     * @param bcs Description of the Parameter
39     * @param serviceClass Description of the Parameter
40     * @return The currentServiceSelectors value
41     */

42    public Iterator JavaDoc getCurrentServiceSelectors(BeanContextServices JavaDoc bcs, java.lang.Class JavaDoc serviceClass)
43    {
44       return (new Vector JavaDoc()).iterator();
45    }
46
47
48    /**
49     * Getter for the service attribute
50     *
51     * @param bcs Description of the Parameter
52     * @param requestor Description of the Parameter
53     * @param serviceClass Description of the Parameter
54     * @param serviceSelector Description of the Parameter
55     * @return The service value
56     */

57    public Object JavaDoc getService(BeanContextServices JavaDoc bcs, java.lang.Object JavaDoc requestor, java.lang.Class JavaDoc serviceClass, java.lang.Object JavaDoc serviceSelector)
58    {
59       return this.service;
60    }
61
62
63    /**
64     * Description of the Method
65     *
66     * @param bcs Description of the Parameter
67     * @param requestor Description of the Parameter
68     * @param service Description of the Parameter
69     */

70    public void releaseService(BeanContextServices JavaDoc bcs, java.lang.Object JavaDoc requestor, java.lang.Object JavaDoc service) { }
71
72
73    /**
74     * @return The serviceClass value
75     */

76    protected Class JavaDoc[] getServiceClass()
77    {
78       return new Class JavaDoc[]{ConnectionService.class};
79    }
80 }
81
Popular Tags