KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > acme > sp > SPImpl


1 package com.acme.sp;
2
3 import java.lang.*;
4
5 /**
6  * This class is the interface for accessing an SP object.
7  */

8 public class SPImpl implements SP {
9
10     /** Default constructor. */
11     private SPImpl() {
12     }
13     
14     /** Method to create a new SP object, hidden for future flexibility. */
15     public static SP createSP() {
16         SPImpl spimpl = new SPImpl();
17         return spimpl;
18     }
19
20     /**
21      * This method was inherited from the SP interface.
22      *
23      * @deprecated Use some other method instead.
24      */

25     public int saveName(String JavaDoc name, int value) {
26         return 1;
27     }
28
29     /**
30      * This is the new method for flushing tables.
31      *
32      * @since SuperProduct 2.0
33      */

34     public void flushTable(SP instance) {
35     }
36
37     /**
38      * We've changed the signature in the 2.0 release.
39      */

40     public static void buildLog(String JavaDoc logName, int timeout,
41                                 boolean isDisk, int numRollovers) {
42     }
43 }
44
Popular Tags