use of org.jowidgets.cap.common.api.service.IRefreshService in project jo-client-platform by jo-source.
the class BeanSelectionProviderRefreshInterceptor method afterExecutionSuccess.
@Override
public void afterExecutionSuccess(final IExecutionContext executionContext, final RESULT_TYPE result) {
final IRefreshService refreshService = getRefreshService();
if (refreshService != null) {
final BeanListRefreshDelegate<BEAN_TYPE> refreshDelegate = new BeanListRefreshDelegate<BEAN_TYPE>(getListModel(), CapUiToolkit.defaultExceptionConverter(), BeanExecutionPolicy.BATCH, refreshService);
refreshDelegate.refresh(lastSelection.getSelection());
}
}
use of org.jowidgets.cap.common.api.service.IRefreshService in project jo-client-platform by jo-source.
the class RefreshServiceBuilderImpl method build.
@Override
public IRefreshService build() {
final IAdapterFactoryProvider afp = CapServiceToolkit.adapterFactoryProvider();
final IAdapterFactory<IRefreshService, ISyncRefreshService> adapterFactory = afp.refresh();
return adapterFactory.createAdapter(buildSyncService());
}
Aggregations