Class FunctionRegistryFactory

java.lang.Object
org.citrusframework.functions.FunctionRegistryFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<FunctionRegistry>, org.springframework.context.ApplicationContextAware

public class FunctionRegistryFactory extends Object implements org.springframework.beans.factory.FactoryBean<FunctionRegistry>, org.springframework.context.ApplicationContextAware
Registry factory bean automatically adds all function libraries that live in the Spring bean application context. The default function library is also added via Spring bean reference. This is why this registry explicitly doe not use default registry in order to not duplicate the default function library.
Author:
Christoph Deppisch
  • Constructor Details

    • FunctionRegistryFactory

      public FunctionRegistryFactory()
      Default constructor.
    • FunctionRegistryFactory

      public FunctionRegistryFactory(FunctionRegistry registry)
      Constructor initializes with given registry.
      Parameters:
      registry -
  • Method Details

    • getObject

      public FunctionRegistry getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<FunctionRegistry>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<FunctionRegistry>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<FunctionRegistry>
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException