KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > module > builders > vwms > VwmServiceInterface


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.module.builders.vwms;
11
12 /**
13  * Interface for VWMs that handle file servicing.
14  * This interface is used for VWMs that need to be invoked by the scancache module whenever a file is to
15  * be cached through the CACHE PAGE directive.
16  * VWMS implementing this interface keep track of filechanges and update the filecache when needed.
17  * @see PageMaster
18  *
19  * @application SCAN
20  * @author Daniel Ockeloen
21  * @author Pierre van Rooden (javadocs)
22  * @version $Id: VwmServiceInterface.java,v 1.7 2004/10/08 10:57:57 pierre Exp $
23  */

24 public interface VwmServiceInterface extends VwmInterface {
25
26     /**
27      * Handles a service-request on a file, registered in the netfiles builder.
28      * @param number Number of the node in the netfiles buidler than contain service request information.
29      * @param ctype the type of change to that node
30      * @return <code>true</code> if the request was succesfully handled
31      */

32     public boolean fileChange(String JavaDoc number,String JavaDoc ctype);
33
34     /**
35      * Handles a service-request on a file, registered in the netfiles builder.
36      * @param service the service to be performed
37      * @param subservice the subservice to be performed
38      * @param filename the filename to service
39      * @return <code>true</code> if the request was handled
40      */

41     public boolean fileChange(String JavaDoc service,String JavaDoc subservice,String JavaDoc filename);
42 }
43
Popular Tags