Implement spring Conduit bean registry and lots of cleanup
[jpim.git] / src / de / j32 / pimstuff / conduit / Registry.java
1 package de.j32.pimstuff.conduit;
2
3 import org.springframework.context.ApplicationContext;
4 import org.springframework.context.support.FileSystemXmlApplicationContext;
5
6 public class Registry
7 {
8         static ApplicationContext context_ = new FileSystemXmlApplicationContext("conduits.xml");
9         
10         public static Conduit get(String k)
11         {
12                 return context_.getBean(k, Conduit.class);
13         }
14                 
15 }