Class ChildTargetService

  • All Implemented Interfaces:
    Service

    public class ChildTargetService
    extends Object
    implements Service
    Service that performs service installation into the child target on start.
    Author:
    Paul Ferraro
    • Method Detail

      • start

        public void start​(StartContext context)
        Description copied from interface: Service
        Start the service. Do not return until the service has been fully started, unless an asynchronous service start is performed. All injections will be complete before this method is called.

        If the service start involves any activities that may block, the asynchronous mechanism provided by the context should be used. See the class javadoc for details.

        Specified by:
        start in interface Service
        Parameters:
        context - the context which can be used to trigger an asynchronous service start
      • stop

        public void stop​(StopContext context)
        Description copied from interface: Service
        Stop the service. Do not return until the service has been fully stopped, unless an asynchronous service stop is performed. All injections will remain intact until the service is fully stopped. This method should not throw an exception.

        If the service start involves any activities that may block, the asynchronous mechanism provided by the context should be used. See the class javadoc for details.

        Specified by:
        stop in interface Service
        Parameters:
        context - the context which can be used to trigger an asynchronous service stop