Revert to more convenient signature in FunctionCatalog

This commit is contained in:
Dave Syer
2018-09-17 14:48:40 +01:00
parent 033ab38579
commit f7b184c4c3
11 changed files with 84 additions and 92 deletions

View File

@@ -379,8 +379,7 @@ class FunctionCreatorConfiguration {
return;
}
FunctionRegistration<Object> registration = new FunctionRegistration<Object>(
bean).names(
FunctionProperties.functionName(counter.getAndIncrement()));
bean, FunctionProperties.functionName(counter.getAndIncrement()));
if (this.runner != null) {
if (this.runner.containsBean(FunctionInspector.class.getName())) {
Object inspector = this.runner

View File

@@ -37,7 +37,7 @@ public class SingleEntryFunctionRegistry implements FunctionRegistry {
}
@Override
public <T> T lookup(Class<T> type, String name) {
public <T> T lookup(Class<?> type, String name) {
return this.name.equals(name) ? this.delegate.lookup(type, name) : null;
}