public class BeanFactoryAwareFunctionRegistry extends SimpleFunctionRegistry implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
FunctionRegistry and FunctionCatalog which is aware of the
underlying BeanFactory to access available functions. Functions that are registered via
SimpleFunctionRegistry.register(FunctionRegistration) operation are stored/cached locally.SimpleFunctionRegistry.FunctionInvocationWrapperCOULD_NOT_CONVERT_INPUT, COULD_NOT_CONVERT_OUTPUT| Constructor and Description |
|---|
BeanFactoryAwareFunctionRegistry(org.springframework.core.convert.ConversionService conversionService,
org.springframework.messaging.converter.CompositeMessageConverter messageConverter) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Set<String> |
getNames(Class<?> type) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
int |
size()
Return the count of functions registered in this catalog.
|
getRegistration, lookup, lookup, registerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlookupgetInputType, getInputWrapper, getName, getOutputType, getOutputWrapper, isMessagepublic BeanFactoryAwareFunctionRegistry(org.springframework.core.convert.ConversionService conversionService,
@Nullable
org.springframework.messaging.converter.CompositeMessageConverter messageConverter)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic int size()
FunctionCatalogsize in interface FunctionCatalogsize in class SimpleFunctionRegistrypublic Set<String> getNames(Class<?> type)
getNames in interface FunctionCataloggetNames in class SimpleFunctionRegistrypublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.