use of org.jowidgets.cap.service.api.adapter.ISyncLookUpService in project jo-client-platform by jo-source.
the class CapServiceProviderBuilder method addLookUpService.
public void addLookUpService(final Object lookUpId, final ISyncLookUpService lookUpService) {
final IAdapterFactory<ILookUpService, ISyncLookUpService> adapterFactoryProvider;
adapterFactoryProvider = CapServiceToolkit.adapterFactoryProvider().lookup();
final ILookUpService asyncService = adapterFactoryProvider.createAdapter(lookUpService);
final ServiceId<ILookUpService> serviceId = new ServiceId<ILookUpService>(lookUpId, ILookUpService.class);
addService(serviceId, asyncService);
}
Aggregations