01: package com.acme.sp;
02:
03: import java.lang.*;
04:
05: /**
06: * This class is the interface for accessing an SP object.
07: */
08: public class SPImpl implements SP {
09:
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 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 logName, int timeout,
41: boolean isDisk, int numRollovers) {
42: }
43: }
|