Class DefaultDevConsoleRegistry

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.impl.console.DefaultDevConsoleRegistry
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.console.DevConsoleRegistry, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

@DevConsole(name="default-registry", description="Default Console Registry") @DeferredContextBinding public class DefaultDevConsoleRegistry extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.console.DevConsoleRegistry
Default DevConsoleRegistry.
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING

    Fields inherited from interface org.apache.camel.console.DevConsoleRegistry

    FACTORY, NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DefaultDevConsoleRegistry(org.apache.camel.CamelContext camelContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    protected void
     
    org.apache.camel.CamelContext
     
     
    boolean
     
    void
     
    void
    loadDevConsoles(boolean force)
     
    boolean
    register(org.apache.camel.console.DevConsole console)
     
    org.apache.camel.console.DevConsole
     
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
     
    void
    setEnabled(boolean enabled)
     
    void
     
    Stream<org.apache.camel.console.DevConsole>
     
    boolean
    unregister(org.apache.camel.console.DevConsole console)
     

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    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.console.DevConsoleRegistry

    getConsole, getConsoleIDs

    Methods inherited from interface org.apache.camel.spi.IdAware

    setGeneratedId

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • DefaultDevConsoleRegistry

      public DefaultDevConsoleRegistry()
    • DefaultDevConsoleRegistry

      public DefaultDevConsoleRegistry(org.apache.camel.CamelContext camelContext)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.apache.camel.spi.HasId
    • setId

      public void setId(String id)
      Specified by:
      setId in interface org.apache.camel.spi.IdAware
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.apache.camel.console.DevConsoleRegistry
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface org.apache.camel.console.DevConsoleRegistry
    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • setCamelContext

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
      Specified by:
      setCamelContext in interface org.apache.camel.CamelContextAware
    • doInit

      protected void doInit() throws Exception
      Overrides:
      doInit in class org.apache.camel.support.service.BaseService
      Throws:
      Exception
    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.apache.camel.support.service.BaseService
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.apache.camel.support.service.BaseService
      Throws:
      Exception
    • resolveById

      public org.apache.camel.console.DevConsole resolveById(String id)
      Specified by:
      resolveById in interface org.apache.camel.console.DevConsoleRegistry
    • register

      public boolean register(org.apache.camel.console.DevConsole console)
      Specified by:
      register in interface org.apache.camel.console.DevConsoleRegistry
    • unregister

      public boolean unregister(org.apache.camel.console.DevConsole console)
      Specified by:
      unregister in interface org.apache.camel.console.DevConsoleRegistry
    • stream

      public Stream<org.apache.camel.console.DevConsole> stream()
      Specified by:
      stream in interface org.apache.camel.console.DevConsoleRegistry
    • loadDevConsoles

      public void loadDevConsoles()
      Specified by:
      loadDevConsoles in interface org.apache.camel.console.DevConsoleRegistry
    • loadDevConsoles

      public void loadDevConsoles(boolean force)
      Specified by:
      loadDevConsoles in interface org.apache.camel.console.DevConsoleRegistry