Class PrefabInstallerImpl

  • All Implemented Interfaces:
    PrefabInstaller, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

    @Service
    public class PrefabInstallerImpl
    extends java.lang.Object
    implements PrefabInstaller, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
    Default implementation of PrefabInstaller. Hooks to the ApplicationContext of the prefab servlet for installing/uninstalling the beans of the Prefab.

    Uses Spring event handling to communicate prefab state changes.

    • Constructor Detail

      • PrefabInstallerImpl

        public PrefabInstallerImpl()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext servletContext)
        Specified by:
        setServletContext in interface org.springframework.web.context.ServletContextAware
      • setPrefabManager

        public void setPrefabManager​(PrefabManager prefabManager)
        Sets the PrefabManager for reading the prefabs.
      • getPrefabManager

        public PrefabManager getPrefabManager()
        Returns:
        the prefabManager
      • getPrefabRegistry

        public PrefabRegistry getPrefabRegistry()
        Returns:
        the prefabRegistry