public class InMemoryFunctionCatalog extends Object implements FunctionRegistry, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
InMemoryFunctionCatalog() |
InMemoryFunctionCatalog(Set<FunctionRegistration<?>> registrations) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getConsumerNames() |
Set<String> |
getFunctionNames() |
Set<String> |
getSupplierNames() |
void |
init() |
<T> Consumer<T> |
lookupConsumer(String name) |
<T,R> Function<T,R> |
lookupFunction(String name) |
<T> Supplier<T> |
lookupSupplier(String name) |
<T> void |
register(FunctionRegistration<T> registration) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
public InMemoryFunctionCatalog()
public InMemoryFunctionCatalog(Set<FunctionRegistration<?>> registrations)
public <T> void register(FunctionRegistration<T> registration)
register in interface FunctionRegistrypublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware@PostConstruct public void init()
@PreDestroy public void close()
public <T> Supplier<T> lookupSupplier(String name)
lookupSupplier in interface FunctionCatalogpublic <T,R> Function<T,R> lookupFunction(String name)
lookupFunction in interface FunctionCatalogpublic <T> Consumer<T> lookupConsumer(String name)
lookupConsumer in interface FunctionCatalogpublic Set<String> getSupplierNames()
getSupplierNames in interface FunctionCatalogpublic Set<String> getFunctionNames()
getFunctionNames in interface FunctionCatalogpublic Set<String> getConsumerNames()
getConsumerNames in interface FunctionCatalogCopyright © 2018 Pivotal Software, Inc.. All rights reserved.