- java.lang.Object
-
- ilusr.core.ioc.ServiceManager
-
public class ServiceManager extends Object
Simple class that uses spring to do Inversion of Control.- Author:
- Jeff Riggle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(String name)
static ServiceManager
getInstance()
Gets or creates a ServiceManager instance.void
registerBean(String name, org.springframework.beans.factory.config.BeanDefinition bean)
Registers a @see BeanDefinition with a key of name.void
registerServices(String xmlfile)
Registers a spring based xml file.void
registerServicesFromResource(org.springframework.core.io.Resource resource)
-
-
-
Method Detail
-
getInstance
public static ServiceManager getInstance()
Gets or creates a ServiceManager instance.- Returns:
- A Shared @see ServiceManager instance.
-
registerServices
public void registerServices(String xmlfile)
Registers a spring based xml file.- Parameters:
xmlfile
- The path where the spring based xml exists.
-
registerServicesFromResource
public void registerServicesFromResource(org.springframework.core.io.Resource resource)
-
registerBean
public void registerBean(String name, org.springframework.beans.factory.config.BeanDefinition bean)
Registers a @see BeanDefinition with a key of name.- Parameters:
name
- The name to register the bean as.bean
- The @see BeanDefinition to register.
-
get
public <T> T get(String name)
-
-