Class ActiveContainer

    • Constructor Detail

    • Method Detail

      • destroy

        protected void destroy()
        Description copied from class: AbstractResource

        This method signals that this AbstractResource can dispose of any internal resources, and commence with shut down of any internal threads. This will be called once the reference count of this resource reaches zero.

        Overrides:
        destroy in class AbstractResource
      • guiceInjector

        public com.google.inject.Injector guiceInjector()
      • serverProviders

        public java.lang.Iterable<ServerProvider> serverProviders()
      • 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.