01: package org.igfay.jfig;
02:
03: import java.io.InputStream;
04:
05: /**
06: * @author conrad4
07: *
08: * Locate the intial Configuration file.
09: * Users may write their own implementation of JFigLocatorIF with
10: * their own scheme of finding the initial configuration file.
11: *
12: * Best method may be to subclass the JFig implementation.
13: * Then, initialize JFig via: getInstance(JFigLocatorIF), passing your implementation.
14: */
15: public interface JFigLocatorIF {
16: /**
17: * Return the config fileName. This will be the last file processed.
18: */
19: public String getConfigFileName();
20:
21: public void setConfigFileName(String value);
22:
23: public String getConfigLocation() throws JFigException;
24:
25: /**
26: * Set the config location; must be FILE or CLASSPATH.
27: * If not, throw exception
28: *
29: * @param value
30: * @throws JFigException
31: */
32: public void setConfigLocation(String value) throws JFigException;
33:
34: /**
35: * Return a default config file name.
36: * Can be modified by any JFigLocatorIF implementation.
37: * @return
38: */
39: public String getDefaultConfigFileName();
40:
41: public void setDefaultConfigFileName(String value);
42:
43: public InputStream getInputStream() throws JFigException;
44:
45: }
|