Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ContextObjectFactory |
|
| 1.0;1 |
1 | package org.webmacro.broker; | |
2 | ||
3 | import org.webmacro.Context; | |
4 | import org.webmacro.PropertyException; | |
5 | ||
6 | /** | |
7 | * ContextObjectFactory | |
8 | * This interface replaces ContextTool. | |
9 | * | |
10 | * @author Brian Goetz | |
11 | */ | |
12 | public interface ContextObjectFactory { | |
13 | /** | |
14 | * Return an object which is suitable for placement in the context. | |
15 | * This might be a new context-specific object, or a shared instance of an | |
16 | * immutable object. | |
17 | */ | |
18 | public Object get(Context c) throws PropertyException; | |
19 | } |