Module ilusr.core

Class ServiceManager


  • public class ServiceManager
    extends Object
    Simple class that uses spring to do Inversion of Control.
    Author:
    Jeff Riggle
    • 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)