public class SingleEntryFunctionRegistry extends Object implements FunctionRegistry
| Constructor and Description |
|---|
SingleEntryFunctionRegistry(FunctionRegistry delegate,
String name) |
| 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlookup, sizepublic SingleEntryFunctionRegistry(FunctionRegistry delegate, String name)
public <T> T lookup(Class<?> type, String name)
FunctionCataloglookup in interface FunctionCatalogT - instance typetype - 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 <T> void register(FunctionRegistration<T> registration)
register in interface FunctionRegistryCopyright © 2019 Pivotal Software, Inc.. All rights reserved.