01: package org.jicengine;
02:
03: import org.jicengine.io.Resource;
04: import java.util.Map;
05: import java.io.IOException;
06:
07: /**
08: * <p>
09: * An interface for accessing the current build-context within
10: * JIC-files. An instance of this class is available by default in
11: * all JIC-files under the name 'buildContext'.
12: * </p>
13: * <p>
14: * BuildContext makes it possible to reference the current JIC-file,
15: * the build-attributes, etc. (in the future, this interface could be
16: * used for letting the JIC-files also customize their environment.)
17: * </p>
18: *
19: * <p>
20: * Copyright (C) 2004 Timo Laitinen
21: * </p>
22: *
23: * @author Timo Laitinen
24: * @created 2004-09-20
25: * @since JICE-0.10
26: *
27: */
28:
29: public interface BuildContext {
30:
31: public static final String VARIABLE_NAME = "jic::buildContext";
32:
33: public Resource getResource(String relativePath) throws IOException;
34:
35: public Resource getCurrentFile();
36:
37: /**
38: *
39: */
40: public Map getParameters();
41:
42: /**
43: *
44: */
45: public Object getParameter(String name) throws JICException;
46:
47: }
|