Class DefaultSimpleFunctionRegistry

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.impl.engine.DefaultSimpleFunctionRegistry
All Implemented Interfaces:
AutoCloseable, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.SimpleFunctionRegistry, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

public class DefaultSimpleFunctionRegistry extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.SimpleFunctionRegistry, org.apache.camel.StaticService
Default SimpleFunctionRegistry.
  • 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
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    addFunction(String name, org.apache.camel.Expression expression)
     
    void
    addFunction(org.apache.camel.spi.SimpleFunction function)
     
    int
     
    int
     
    protected void
     
     
     
    org.apache.camel.Expression
     
    void
     

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

    build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doSuspend, fail, getInternalLock, 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.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

    • DefaultSimpleFunctionRegistry

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

    • addFunction

      public void addFunction(String name, org.apache.camel.Expression expression)
      Specified by:
      addFunction in interface org.apache.camel.spi.SimpleFunctionRegistry
    • addFunction

      public void addFunction(org.apache.camel.spi.SimpleFunction function)
      Specified by:
      addFunction in interface org.apache.camel.spi.SimpleFunctionRegistry
    • removeFunction

      public void removeFunction(String name)
      Specified by:
      removeFunction in interface org.apache.camel.spi.SimpleFunctionRegistry
    • getFunction

      public org.apache.camel.Expression getFunction(String name)
      Specified by:
      getFunction in interface org.apache.camel.spi.SimpleFunctionRegistry
    • getCustomFunctionNames

      public Set<String> getCustomFunctionNames()
      Specified by:
      getCustomFunctionNames in interface org.apache.camel.spi.SimpleFunctionRegistry
    • getCoreFunctionNames

      public Set<String> getCoreFunctionNames()
      Specified by:
      getCoreFunctionNames in interface org.apache.camel.spi.SimpleFunctionRegistry
    • customSize

      public int customSize()
      Specified by:
      customSize in interface org.apache.camel.spi.SimpleFunctionRegistry
    • coreSize

      public int coreSize()
      Specified by:
      coreSize in interface org.apache.camel.spi.SimpleFunctionRegistry
    • doStop

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