Class EntityBrokerRESTServiceManager


  • public class EntityBrokerRESTServiceManager
    extends Object
    This creates all the needed services (as if it were a service manager), this will let us create the services we need without too much confusion and ensure we are using the same ones
    If this is used then the services should not be created in some other way but should be initiated here and then exported from this class only
    Author:
    Aaron Zeckoski (azeckoski @ gmail.com)
    • Constructor Detail

      • EntityBrokerRESTServiceManager

        protected EntityBrokerRESTServiceManager()
      • EntityBrokerRESTServiceManager

        public EntityBrokerRESTServiceManager​(EntityBrokerManager entityBrokerManager)
        Base constructor
        Parameters:
        entityBrokerManager - the main entity broker manager service
      • EntityBrokerRESTServiceManager

        public EntityBrokerRESTServiceManager​(EntityBrokerManager entityBrokerManager,
                                              HttpServletAccessProviderManager httpServletAccessProviderManager)
        Full constructor
        Parameters:
        entityBrokerManager - the main entity broker manager service
        httpServletAccessProviderManager - (optional)
    • Method Detail

      • setEntityBrokerManager

        public void setEntityBrokerManager​(EntityBrokerManager entityBrokerManager)
      • init

        public void init()
        WARNING: If you use the non-empty constructors to make this object then do not run this, it has already been run and should not be run a second time
        Startup all the REST services for the EB system, this can only be run after this is constructed with a full constructor or the setEntityBrokerManager(EntityBrokerManager) method has been called (i.e. all the required services are set)
      • shutdown

        public void shutdown()
        Shutdown the services (just calls over to destroy)
      • destroy

        public void destroy()
        Shuts down all services and cleans up