Class ApplicationLoader

    • Constructor Detail

      • ApplicationLoader

        public ApplicationLoader​(OsgiFramework osgiFramework,
                                 java.lang.Iterable<? extends com.google.inject.Module> guiceModules)
    • Method Detail

      • activateContainer

        public DeactivatedContainer activateContainer​(ContainerBuilder builder)
        Description copied from interface: ContainerActivator
        Creates and activates a Container based on the provided ContainerBuilder. By providing a null argument, this method can be used to deactivate the current Container. The returned object can be used to schedule a cleanup task that is executed once the the deactivated Container has terminated.
        Specified by:
        activateContainer in interface ContainerActivator
        Parameters:
        builder - The builder to activate.
        Returns:
        The previous container, if any.
      • newReference

        public com.yahoo.jdisc.core.ContainerSnapshot newReference​(java.net.URI uri,
                                                                   java.lang.Object context)
        Description copied from interface: CurrentContainer
        Returns a reference to the currently active Container. Until SharedResource.release() has been called, the Container can not shut down.
        Specified by:
        newReference in interface CurrentContainer
        Parameters:
        uri - The identifier used to match this Request to an appropriate ClientProvider or RequestHandler. The hostname must be "localhost" or a fully qualified domain name.
        context - that can be attached for reference tracking
        Returns:
        A reference to the current Container.
      • init

        public void init​(java.lang.String appLocation,
                         boolean privileged)
                  throws java.lang.Exception
        Specified by:
        init in interface BootstrapLoader
        Throws:
        java.lang.Exception
      • start

        public void start()
                   throws java.lang.Exception
        Specified by:
        start in interface BootstrapLoader
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Specified by:
        stop in interface BootstrapLoader
        Throws:
        java.lang.Exception