KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
12  * @author <a HREF="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
13  */

14 public class MicrocontainerLocatorSupport
15 {
16
17    private Locator locator = new NullLocator();
18
19    public MicrocontainerLocatorSupport()
20    {
21    }
22
23    public MicrocontainerLocatorSupport(Locator locator)
24    {
25       this.locator = locator;
26    }
27
28    public Locator getLocator()
29    {
30       return locator;
31    }
32
33    public void setLocator(Locator locator)
34    {
35       this.locator = locator;
36    }
37
38    public Object JavaDoc locateBean(String JavaDoc beanName)
39    {
40       return getLocator().locateBean(beanName);
41    }
42
43 }
44
Popular Tags