Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/GlobalContext.java @ 293:a367a0d011af
Set an interface for the global context; added a method to the artifact database to return an instance of an Artifact.
artifacts/trunk@2331 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 14 Jul 2011 14:22:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
292:39c0ff00d188 | 293:a367a0d011af |
---|---|
1 package de.intevation.artifacts; | |
2 | |
3 public interface GlobalContext { | |
4 | |
5 /** | |
6 * Fetch a custom value from the global key/value map using | |
7 * a given key. | |
8 * @param key The key. | |
9 * @return The stored value or null if no value was found under | |
10 * this key. | |
11 */ | |
12 Object get(Object key); | |
13 | |
14 /** | |
15 * Store a custom key/value pair in the global map. | |
16 * @param key The key to store | |
17 * @param value The value to store | |
18 * @return The old value registered under the key or null | |
19 * if none wa there before. | |
20 */ | |
21 Object put(Object key, Object value); | |
22 } | |
23 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |