Class DeferServiceStartupListener

java.lang.Object
org.apache.camel.impl.engine.DeferServiceStartupListener
All Implemented Interfaces:
org.apache.camel.Ordered, org.apache.camel.StartupListener

public class DeferServiceStartupListener extends Object implements org.apache.camel.StartupListener, org.apache.camel.Ordered
A StartupListener that defers starting Services, until as late as possible during the startup process of CamelContext.
  • Field Summary

    Fields inherited from interface org.apache.camel.Ordered

    HIGHEST, LOWEST
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addService(org.apache.camel.Service service, boolean startEarly)
     
    protected void
    doStart(Set<org.apache.camel.Service> services, org.apache.camel.CamelContext context, boolean alreadyStarted)
     
    int
     
    void
    onCamelContextStarted(org.apache.camel.CamelContext context, boolean alreadyStarted)
     
    void
    onCamelContextStarting(org.apache.camel.CamelContext context, boolean alreadyStarted)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.StartupListener

    onCamelContextFullyStarted
  • Constructor Details

    • DeferServiceStartupListener

      public DeferServiceStartupListener()
  • Method Details

    • addService

      public void addService(org.apache.camel.Service service, boolean startEarly)
    • onCamelContextStarting

      public void onCamelContextStarting(org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception
      Specified by:
      onCamelContextStarting in interface org.apache.camel.StartupListener
      Throws:
      Exception
    • onCamelContextStarted

      public void onCamelContextStarted(org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception
      Specified by:
      onCamelContextStarted in interface org.apache.camel.StartupListener
      Throws:
      Exception
    • doStart

      protected void doStart(Set<org.apache.camel.Service> services, org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception
      Throws:
      Exception
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.apache.camel.Ordered