Mercurial > dive4elements > framework
annotate artifacts/src/main/java/org/dive4elements/artifacts/Hook.java @ 525:0fdd239f4f39 facet-metadata
Merged default into branch facet-metadata.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 08 Jul 2014 18:33:15 +0200 |
parents | 415df0fc4fa1 |
children |
rev | line source |
---|---|
475
415df0fc4fa1
Fixed maven group ids
Sascha L. Teichmann <teichmann@intevation.de>
parents:
471
diff
changeset
|
1 package org.dive4elements.artifacts; |
292
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 |
294
b530e83acf2e
Adapted the signature of Hook.execute() which now retrieves a Document as third parameter.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
292
diff
changeset
|
3 import org.w3c.dom.Document; |
292
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
4 import org.w3c.dom.Node; |
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
5 |
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
6 |
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 public interface Hook { |
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 |
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 void setup(Node config); |
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 |
294
b530e83acf2e
Adapted the signature of Hook.execute() which now retrieves a Document as third parameter.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
292
diff
changeset
|
11 void execute(Artifact artifact, CallContext context, Document document); |
292
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 } |
39c0ff00d188
Introduced a hook concept - currently used for 'post-feed' and 'post-advance'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |