public class InMemoryFunctionCatalog extends Object implements FunctionRegistry, FunctionInspector, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
InMemoryFunctionCatalog() |
InMemoryFunctionCatalog(Set<FunctionRegistration<?>> registrations) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getNames(Class<?> type) |
FunctionRegistration<?> |
getRegistration(Object function) |
void |
init() |
<T> T |
lookup(Class<?> type,
String name)
Will look up the instance of the functional interface by name and type
which can only be Supplier, Consumer or Function.
|
<T> void |
register(FunctionRegistration<T> registration) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlookup, sizegetInputType, getInputWrapper, getName, getOutputType, getOutputWrapper, isMessagepublic InMemoryFunctionCatalog()
public InMemoryFunctionCatalog(Set<FunctionRegistration<?>> registrations)
public FunctionRegistration<?> getRegistration(Object function)
getRegistration in interface FunctionInspectorpublic <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> T lookup(Class<?> type, String name)
FunctionCataloglookup in interface FunctionCatalogtype - the type of functional interface. Can be nullname - the name of the functional interface. Must not be null;public Set<String> getNames(Class<?> type)
getNames in interface FunctionCatalogCopyright © 2018 Pivotal Software, Inc.. All rights reserved.