Class WebContainerStarter

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct, ConfigListener

    @Service
    @RunLevel(10)
    public class WebContainerStarter
    extends Object
    implements org.glassfish.hk2.api.PostConstruct, ConfigListener
    Startup service for the web container. This service checks if any domain.xml configuration, or changes in such configuration, that can be handled only by the web container (e.g., access logging) have been specified, and if so, starts the web container (unless already started).
    Author:
    jluehe
    • Constructor Detail

      • WebContainerStarter

        public WebContainerStarter()
    • Method Detail

      • postConstruct

        public void postConstruct()
        Scans the domain.xml to see if it specifies any configuration that can be handled only by the web container, and if so, starts the web container
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • changed

        public UnprocessedChangeEvents changed​(PropertyChangeEvent[] events)
        Description copied from interface: ConfigListener
        Notification that @Configured objects that were injected have changed
        Specified by:
        changed in interface ConfigListener
        Parameters:
        events - list of changes
        Returns:
        the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully