public class BeanFactoryAwareFunctionRegistry extends SimpleFunctionRegistry implements org.springframework.context.ApplicationContextAware
FunctionRegistry capable of discovering functioins in BeanFactory.SimpleFunctionRegistry.FunctionInvocationWrapper, SimpleFunctionRegistry.PassThruFunctionlogger| Constructor and Description |
|---|
BeanFactoryAwareFunctionRegistry(org.springframework.core.convert.ConversionService conversionService,
org.springframework.messaging.converter.CompositeMessageConverter messageConverter,
JsonMapper jsonMapper,
FunctionProperties functionProperties,
FunctionInvocationHelper<org.springframework.messaging.Message<?>> functionInvocationHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsFunction(String functionName) |
Set<String> |
getNames(Class<?> type) |
<T> T |
lookup(Class<?> type,
String functionDefinition,
String... expectedOutputMimeTypes) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
int |
size()
Return the count of functions registered in this catalog.
|
addMessageConverters, getRegistration, registerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlookup, lookup, lookupgetInputType, getInputWrapper, getName, getOutputType, getOutputWrapper, isMessagepublic BeanFactoryAwareFunctionRegistry(org.springframework.core.convert.ConversionService conversionService,
org.springframework.messaging.converter.CompositeMessageConverter messageConverter,
JsonMapper jsonMapper,
@Nullable
FunctionProperties functionProperties,
@Nullable
FunctionInvocationHelper<org.springframework.messaging.Message<?>> functionInvocationHelper)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic int size()
FunctionCatalogsize in interface FunctionCatalogsize in class SimpleFunctionRegistrypublic Set<String> getNames(Class<?> type)
getNames in interface FunctionCataloggetNames in class SimpleFunctionRegistrypublic <T> T lookup(Class<?> type, String functionDefinition, String... expectedOutputMimeTypes)
lookup in interface FunctionCataloglookup in class SimpleFunctionRegistryprotected boolean containsFunction(String functionName)
containsFunction in class SimpleFunctionRegistryCopyright © 2022 Pivotal Software, Inc.. All rights reserved.