use of org.mule.runtime.core.internal.streaming.object.InMemoryCursorIteratorProvider in project mule by mulesoft.
the class InMemoryCursorIteratorProviderFactory method resolve.
/**
* {@inheritDoc}
*
* @return a new {@link CursorIteratorProvider} wrapped in an {@link Either}
*/
@Override
protected Object resolve(Iterator iterator, CoreEvent event) {
InMemoryCursorIteratorProvider inMemoryCursorIteratorProvider = new InMemoryCursorIteratorProvider(iterator, config);
inMemoryCursorIteratorProvider.setAnnotations(getAnnotations());
return inMemoryCursorIteratorProvider;
}
Aggregations