Search in sources :

Example 1 with ExtensionsTypeHandlerManagerFactory

use of org.mule.runtime.extension.api.declaration.type.ExtensionsTypeHandlerManagerFactory in project mule by mulesoft.

the class ExtensionsTestUtils method objectTypeBuilder.

public static TypeBuilder<?> objectTypeBuilder(Class<?> clazz) {
    BaseTypeBuilder typeBuilder = BaseTypeBuilder.create(JAVA);
    final TypeHandlerManager typeHandlerManager = new ExtensionsTypeHandlerManagerFactory().createTypeHandlerManager();
    typeHandlerManager.handle(clazz, new ParsingContext(), typeBuilder);
    return typeBuilder;
}
Also used : BaseTypeBuilder(org.mule.metadata.api.builder.BaseTypeBuilder) TypeHandlerManager(org.mule.metadata.java.api.handler.TypeHandlerManager) ParsingContext(org.mule.metadata.java.api.utils.ParsingContext) ExtensionsTypeHandlerManagerFactory(org.mule.runtime.extension.api.declaration.type.ExtensionsTypeHandlerManagerFactory)

Aggregations

BaseTypeBuilder (org.mule.metadata.api.builder.BaseTypeBuilder)1 TypeHandlerManager (org.mule.metadata.java.api.handler.TypeHandlerManager)1 ParsingContext (org.mule.metadata.java.api.utils.ParsingContext)1 ExtensionsTypeHandlerManagerFactory (org.mule.runtime.extension.api.declaration.type.ExtensionsTypeHandlerManagerFactory)1