Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/CallContext.java @ 353:33d7a6da1a05
Extended CallContext to also act as a blackboard/service broker.
artifacts/trunk@3331 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 30 Nov 2011 08:24:55 +0000 |
parents | 089c6f7794b5 |
children | 410a1bfb9590 |
comparison
equal
deleted
inserted
replaced
352:9c8d91708d28 | 353:33d7a6da1a05 |
---|---|
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | 6 * or visit http://www.gnu.org/licenses/ if it does not exist. |
7 */ | 7 */ |
8 | 8 |
9 package de.intevation.artifacts; | 9 package de.intevation.artifacts; |
10 | 10 |
11 import java.util.List; | |
11 import java.util.LinkedList; | 12 import java.util.LinkedList; |
12 | 13 |
13 import org.w3c.dom.Document; | 14 import org.w3c.dom.Document; |
14 import org.w3c.dom.Node; | 15 import org.w3c.dom.Node; |
15 | 16 |
126 /** | 127 /** |
127 * Returns the time to live of the current artifact. | 128 * Returns the time to live of the current artifact. |
128 * @return The time to live of the current artifact. | 129 * @return The time to live of the current artifact. |
129 */ | 130 */ |
130 Long getTimeToLive(); | 131 Long getTimeToLive(); |
132 | |
133 /** | |
134 * Get a list of DataProvider that get provide 'key' type of data to | |
135 * other facets. | |
136 */ | |
137 public List<DataProvider> getDataProvider(Object key); | |
138 | |
139 /** | |
140 * Register a DataProvider that can provide 'key' type of data to | |
141 * other facets. | |
142 */ | |
143 public Object registerDataProvider(Object key, DataProvider provider); | |
131 } | 144 } |
132 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 145 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |