use of org.apache.syncope.core.provisioning.api.propagation.PropagationTaskCallable in project syncope by apache.
the class PriorityPropagationTaskExecutor method newPropagationTaskCallable.
/**
* Creates new instances of {@link PropagationTaskCallable} for usage with
* {@link java.util.concurrent.CompletionService}.
*
* @param taskTO to be executed
* @param reporter to report propagation execution status
* @return new {@link PropagationTaskCallable} instance for usage with
* {@link java.util.concurrent.CompletionService}
*/
protected PropagationTaskCallable newPropagationTaskCallable(final PropagationTaskTO taskTO, final PropagationReporter reporter) {
PropagationTaskCallable callable = (PropagationTaskCallable) ApplicationContextProvider.getBeanFactory().createBean(DefaultPropagationTaskCallable.class, AbstractBeanDefinition.AUTOWIRE_BY_TYPE, false);
callable.setExecutor(this);
callable.setTaskTO(taskTO);
callable.setReporter(reporter);
return callable;
}
Aggregations