1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package nl.hippo.portal.cms.services;
17
18 import java.util.Properties;
19
20 import javax.naming.NamingException;
21
22 import nl.hippo.client.api.ClientException;
23 import nl.hippo.client.api.event.EventAwareManager;
24 import nl.hippo.client.api.service.UpdateNotificationService;
25 import nl.hippo.client.event.service.UpdateNotificationConfig;
26 import nl.hippo.client.event.service.UpdateNotificationServiceImpl;
27
28 /***
29 * @version $Id: UpdateNotificationServiceWrapper.java 14605 2008-11-10 16:20:13Z ddam $
30 * @deprecated Please use nl.hippo.client.event.service.UpdateNotificationServiceImpl directly
31 */
32 public class UpdateNotificationServiceWrapper implements UpdateNotificationService
33 {
34 private UpdateNotificationService service;
35
36 public UpdateNotificationServiceWrapper(Properties contextProperties) throws NamingException, ClientException
37 {
38 UpdateNotificationConfig config = new UpdateNotificationConfig(contextProperties);
39 service = new UpdateNotificationServiceImpl(config);
40 }
41
42 public EventAwareManager getEventAwareManager()
43 {
44 return service.getEventAwareManager();
45 }
46
47 public void start()
48 {
49 service.start();
50 }
51
52 public void stop() {
53 service.stop();
54 }
55
56 }