1 16 17 package org.apache.jetspeed.portal.portlets; 18 19 import org.apache.jetspeed.portal.expire.Expire; 21 import org.apache.jetspeed.portal.expire.ExpireFactory; 22 import org.apache.jetspeed.portal.expire.FileWatchExpire; 23 import org.apache.jetspeed.services.logging.JetspeedLogFactoryService; 24 import org.apache.jetspeed.services.logging.JetspeedLogger; 25 import org.apache.jetspeed.util.JetspeedException; 26 27 28 35 public abstract class FileWatchPortlet extends AbstractInstancePortlet 36 { 37 38 41 private static final JetspeedLogger logger = JetspeedLogFactoryService.getLogger(FileWatchPortlet.class.getName()); 42 43 FileWatchExpire expire = null; 44 45 48 public Expire getExpire() { 49 50 try { 51 52 if ( this.expire == null ) { 53 54 this.expire = (FileWatchExpire)ExpireFactory 55 .getExpire( this, ExpireFactory.FILE_WATCH_EXPIRE ); 56 57 this.expire.setURL( this.getPortletConfig().getURL() ); 58 } 59 60 return this.expire; 61 62 } catch ( JetspeedException e ) { 63 logger.error("Exception", e); 64 return null; 65 } 66 67 68 } 69 70 } 71 72 | Popular Tags |