Add additional logic to function catalog to help with singletons

A registered singleton doesn't have a BeanDefinition, but it might have
a compiled type with enough generic information to pull out the
input and output types.
This commit is contained in:
Dave Syer
2017-11-10 11:43:44 +00:00
parent 7d7a783f0e
commit ad0ebd5cfc
4 changed files with 149 additions and 40 deletions

View File

@@ -80,7 +80,7 @@ public class SingletonTests {
@Override
public void postProcessBeanDefinitionRegistry(
BeanDefinitionRegistry registry) throws BeansException {
// Simulates what happens whem you add a compiled function
// Simulates what happens when you add a compiled function
RootBeanDefinition beanDefinition = new RootBeanDefinition(MySupplier.class);
registry.registerBeanDefinition("words", beanDefinition);
}