Class WeldStartService

java.lang.Object
org.jboss.as.weld.WeldStartService
All Implemented Interfaces:
org.jboss.msc.Service

public class WeldStartService extends Object implements org.jboss.msc.Service
Service that actually finishes starting the weld container, after it has been bootstrapped by WeldBootstrapService
Author:
Stuart Douglas, Richard Opalka
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.jboss.msc.service.ServiceName
     

    Fields inherited from interface org.jboss.msc.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    WeldStartService(Supplier<WeldBootstrapService> bootstrapSupplier, List<org.jboss.as.server.deployment.SetupAction> setupActions, ClassLoader classLoader, org.jboss.msc.service.ServiceName deploymentServiceName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
    stop(org.jboss.msc.service.StopContext context)
    Stops the container Executed in WeldStartService to shutdown the runtime before NamingService is closed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SERVICE_NAME

      public static final org.jboss.msc.service.ServiceName SERVICE_NAME
  • Constructor Details

    • WeldStartService

      public WeldStartService(Supplier<WeldBootstrapService> bootstrapSupplier, List<org.jboss.as.server.deployment.SetupAction> setupActions, ClassLoader classLoader, org.jboss.msc.service.ServiceName deploymentServiceName)
  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Stops the container Executed in WeldStartService to shutdown the runtime before NamingService is closed.
      Specified by:
      stop in interface org.jboss.msc.Service
      Throws:
      IllegalStateException - if the container is not running