View Javadoc

1   /*
2    * Copyright 2007 Hippo
3    *
4    * Licensed under the Apache License, Version 2.0 (the  "License"); 
5    * you may not use this file except in compliance with the License. 
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" 
12   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
13   * See the License for the specific language governing permissions and 
14   * limitations under the License.
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  }