@Configuration @ConditionalOnClass(name="kotlin.jvm.functions.Function0") public class KotlinLambdaToFunctionAutoConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KotlinLambdaToFunctionAutoConfiguration.KotlinFunctionWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
KotlinLambdaToFunctionAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.beans.factory.config.BeanFactoryPostProcessor |
kotlinToFunctionTransformer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Will transform all discovered Kotlin's Function lambdas to java
Supplier, Function and Consumer, retaining the original Kotlin type
characteristics.
|
public KotlinLambdaToFunctionAutoConfiguration()
@Bean public static org.springframework.beans.factory.config.BeanFactoryPostProcessor kotlinToFunctionTransformer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.