KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > spring > kernel > KernelLocator


1 /**
2  * User: alesj
3  * Date: 18.4.2006
4  * Time: 12:42:33
5  *
6  * (C) Genera Lynx d.o.o.
7  */

8
9 package org.jboss.spring.kernel;
10
11 import org.jboss.kernel.Kernel;
12 import org.jboss.kernel.spi.dependency.KernelController;
13
14 /**
15  * @author <a HREF="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
16  */

17 public class KernelLocator extends ControllerLocator
18 {
19
20    private Kernel kernel;
21
22    protected KernelLocator()
23    {
24    }
25
26    public KernelLocator(Kernel kernel)
27    {
28       this.kernel = kernel;
29    }
30
31    public Kernel getKernel()
32    {
33       return kernel;
34    }
35
36    protected void setKernel(Kernel kernel)
37    {
38       this.kernel = kernel;
39    }
40
41    public KernelController getController()
42    {
43       return getKernel().getController();
44    }
45
46 }
47
Popular Tags