Class KotlinCompiler
java.lang.Object
io.micronaut.annotation.processing.test.KotlinCompiler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BeanDefinition<?>
buildBeanDefinition
(String name, String clazz) static BeanDefinition<?>
buildBeanDefinition
(String packageName, String simpleName, String clazz) static BeanDefinitionReference<?>
buildBeanDefinitionReference
(String name, String clazz) static BeanIntrospection<?>
buildBeanIntrospection
(String name, String clazz) static URLClassLoader
buildClassLoader
(String name, String clazz) static ApplicationContext
buildContext
(String clazz) static ApplicationContext
buildContext
(String clazz, boolean includeAllBeans) static ApplicationContext
buildContext
(String clazz, boolean includeAllBeans, Map<String, Object> config) static BeanDefinition<?>
buildInterceptedBeanDefinition
(String className, String cls) static BeanDefinitionReference<?>
buildInterceptedBeanDefinitionReference
(String className, String cls) static kotlin.Pair<kotlin.Pair<io.micronaut.annotation.processing.test.support.KotlinCompilation,
io.micronaut.annotation.processing.test.support.KotlinCompilation.Result>, kotlin.Pair<io.micronaut.annotation.processing.test.support.KotlinCompilation, io.micronaut.annotation.processing.test.support.KotlinCompilation.Result>> compile
(String name, String clazz, Consumer<ClassElement> classElements) static Object
getBean
(BeanContext beanContext, String className) static BeanDefinition<?>
getBeanDefinition
(BeanContext beanContext, String className) static byte[]
getClassBytes
(String name, String clazz)
-
Constructor Details
-
KotlinCompiler
public KotlinCompiler()
-
-
Method Details
-
buildClassLoader
-
compile
public static kotlin.Pair<kotlin.Pair<io.micronaut.annotation.processing.test.support.KotlinCompilation,io.micronaut.annotation.processing.test.support.KotlinCompilation.Result>, compilekotlin.Pair<io.micronaut.annotation.processing.test.support.KotlinCompilation, io.micronaut.annotation.processing.test.support.KotlinCompilation.Result>> (String name, String clazz, Consumer<ClassElement> classElements) -
buildBeanIntrospection
-
buildBeanDefinition
public static BeanDefinition<?> buildBeanDefinition(String name, String clazz) throws InstantiationException, NoSuchMethodException, InvocationTargetException, IllegalAccessException -
buildBeanDefinition
public static BeanDefinition<?> buildBeanDefinition(String packageName, String simpleName, String clazz) throws InstantiationException, NoSuchMethodException, InvocationTargetException, IllegalAccessException -
buildBeanDefinitionReference
public static BeanDefinitionReference<?> buildBeanDefinitionReference(String name, String clazz) throws InstantiationException, NoSuchMethodException, InvocationTargetException, IllegalAccessException -
buildInterceptedBeanDefinition
public static BeanDefinition<?> buildInterceptedBeanDefinition(String className, String cls) throws InstantiationException, NoSuchMethodException, InvocationTargetException, IllegalAccessException -
buildInterceptedBeanDefinitionReference
public static BeanDefinitionReference<?> buildInterceptedBeanDefinitionReference(String className, String cls) throws InstantiationException, NoSuchMethodException, InvocationTargetException, IllegalAccessException -
getClassBytes
public static byte[] getClassBytes(String name, String clazz) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
buildContext
-
buildContext
-
buildContext
public static ApplicationContext buildContext(String clazz, boolean includeAllBeans, Map<String, Object> config) -
getBean
public static Object getBean(BeanContext beanContext, String className) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getBeanDefinition
public static BeanDefinition<?> getBeanDefinition(BeanContext beanContext, String className) throws ClassNotFoundException - Throws:
ClassNotFoundException
-