Class AbstractEmbeddedProcessBootstrap

  • All Implemented Interfaces:
    org.wildfly.core.embedded.spi.EmbeddedProcessBootstrap
    Direct Known Subclasses:
    StandaloneEmbeddedProcessBootstrap

    public abstract class AbstractEmbeddedProcessBootstrap
    extends Object
    implements org.wildfly.core.embedded.spi.EmbeddedProcessBootstrap
    Base EmbeddedProcessBootstrap implementation that provides the bootstrap behavior that is common to an embedded StandaloneServer and HostController.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.wildfly.core.embedded.spi.EmbeddedProcessBootstrap

        org.wildfly.core.embedded.spi.EmbeddedProcessBootstrap.Type
    • Constructor Detail

      • AbstractEmbeddedProcessBootstrap

        public AbstractEmbeddedProcessBootstrap()
    • Method Detail

      • startup

        public org.wildfly.core.embedded.spi.BootstrappedEmbeddedProcess startup​(org.wildfly.core.embedded.spi.EmbeddedProcessBootstrapConfiguration configuration)
                                                                          throws Exception
        Specified by:
        startup in interface org.wildfly.core.embedded.spi.EmbeddedProcessBootstrap
        Throws:
        Exception
      • bootstrapEmbeddedProcess

        protected abstract Future<org.jboss.msc.service.ServiceContainer> bootstrapEmbeddedProcess​(ElapsedTime elapsedTime,
                                                                                                   org.wildfly.core.embedded.spi.EmbeddedProcessBootstrapConfiguration configuration,
                                                                                                   org.jboss.msc.service.ServiceActivator... extraServices)
                                                                                            throws Exception
        Subclass-specific bootstrap logic. Implementations should use the provided inputs to perform their bootstrap.
        Parameters:
        elapsedTime - tracker for elapsed time since embedded process 'start'. Cannot be null.
        configuration - configuration information for starting. Cannot be null.
        extraServices - activators for other services to start
        Returns:
        future from which the MSC service container can be obtained. May return null in the unusual case of the configuration not looking for a running process (e.g. used a --help commmand argument.)
        Throws:
        Exception - if one occurs