protected static class ContextFunctionCatalogAutoConfiguration.BeanFactoryFunctionCatalog extends Object implements FunctionRegistry
| Constructor and Description |
|---|
BeanFactoryFunctionCatalog(ContextFunctionCatalogAutoConfiguration.ContextFunctionRegistry processor) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getNames(Class<?> type) |
<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) |
int |
size()
Return the count of functions registered in this catalog
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlookuppublic BeanFactoryFunctionCatalog(ContextFunctionCatalogAutoConfiguration.ContextFunctionRegistry processor)
public <T> void register(FunctionRegistration<T> registration)
register in interface FunctionRegistrypublic <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 FunctionCatalogpublic int size()
FunctionCatalogsize in interface FunctionCatalogCopyright © 2019 Pivotal Software, Inc.. All rights reserved.