Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ContextAutoLoader |
|
| 1.0;1 |
1 | package org.webmacro.broker; | |
2 | ||
3 | import org.webmacro.Context; | |
4 | import org.webmacro.Broker; | |
5 | import org.webmacro.PropertyException; | |
6 | ||
7 | /** | |
8 | * ContextAutoLoader | |
9 | * | |
10 | * @author Brian Goetz | |
11 | */ | |
12 | public interface ContextAutoLoader { | |
13 | ||
14 | /** | |
15 | * Called once after construction. | |
16 | */ | |
17 | void init(Broker b, String name); | |
18 | ||
19 | /** | |
20 | * Return a new instance of the named automatic variable | |
21 | */ | |
22 | Object get(String name, Context context) throws PropertyException; | |
23 | } |