use of com.adobe.target.edge.client.service.NotificationService in project target-java-sdk by adobe.
the class OnDeviceDecisioningServicesManager method getServices.
public OnDeviceDecisioningServices getServices(ClientConfig clientConfig, TargetService targetService) {
String serviceKey = clientConfig.getClient();
OnDeviceDecisioningServices services = servicesMap.get(serviceKey);
if (services != null) {
return services;
}
synchronized (servicesMap) {
services = servicesMap.get(serviceKey);
if (services != null) {
return services;
}
services = new OnDeviceDecisioningServices();
ClusterLocator clusterLocator = new ClusterLocator();
services.setNotificationDeliveryService(new NotificationService(targetService, clientConfig, clusterLocator));
services.setRuleLoader(new DefaultRuleLoader());
services.setClusterLocator(clusterLocator);
servicesMap.put(serviceKey, services);
return services;
}
}
Aggregations