Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/org/dive4elements/artifactdatabase/ArtifactDatabaseImpl.java @ 496:090f08a64b59 3.0.13
Execute postDescribeHooks after initial describe and creation
If you have a static artifact this is the only chance to get
recommendations executed. And as this is clearly a describe
the describe hooks should be executed anyway.
This fixes loading of reccomendations in the static
gaugedischargecurve artifact for flys/issue1391
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 24 Jul 2013 17:32:24 +0200 |
parents | 415df0fc4fa1 |
children | 68f01f10624e |
comparison
equal
deleted
inserted
replaced
495:6c5af9881250 | 496:090f08a64b59 |
---|---|
826 CallContext.NOTHING, | 826 CallContext.NOTHING, |
827 callMeta, | 827 callMeta, |
828 persistentArtifact); | 828 persistentArtifact); |
829 | 829 |
830 try { | 830 try { |
831 return artifact.describe(null, cc); | 831 Document res = artifact.describe(data, cc); |
832 | |
833 if (postDescribeHooks != null) { | |
834 for (Hook hook: postDescribeHooks) { | |
835 hook.execute(artifact, cc, res); | |
836 } | |
837 } | |
838 return res; | |
832 } | 839 } |
833 finally { | 840 finally { |
834 cc.postCall(); | 841 cc.postCall(); |
835 } | 842 } |
836 } | 843 } |