use of org.mule.metadata.java.api.handler.TypeHandlerManager 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;
}
Aggregations