Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/AnnotationArtifact.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | 8d5ca5175038 |
children | be7864b4fabb |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/AnnotationArtifact.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/AnnotationArtifact.java Fri Sep 05 12:58:17 2014 +0200 @@ -45,8 +45,8 @@ extends StaticD4EArtifact implements FacetTypes { - /** The logger for this class. */ - private static Logger logger = Logger.getLogger(AnnotationArtifact.class); + /** The log for this class. */ + private static Logger log = Logger.getLogger(AnnotationArtifact.class); /** The name of the artifact. */ public static final String ARTIFACT_NAME = "annotation"; @@ -86,7 +86,7 @@ Document data, List<Class> loadFacets) { - logger.debug("AnnotationArtifact.setup"); + log.debug("AnnotationArtifact.setup"); String filter = StaticD4EArtifact.getDatacageIDValue(data); String[] splits = filter.split(":"); if (splits.length > 1) { @@ -100,7 +100,7 @@ @Override protected void initialize(Artifact artifact, Object context, CallMeta meta) { - logger.debug("AnnotationArtifact.initialize, id: " + log.debug("AnnotationArtifact.initialize, id: " + artifact.identifier()); D4EArtifact flys = (D4EArtifact) artifact; @@ -114,11 +114,11 @@ state.computeInit(this, hash(), context, meta, fs); if (!fs.isEmpty()) { - logger.debug("Facets to add in AnnotationsArtifact.initialize ."); + log.debug("Facets to add in AnnotationsArtifact.initialize ."); addFacets(getCurrentStateId(), fs); } else { - logger.debug("No facets to add in AnnotationsArtifact.initialize ."); + log.debug("No facets to add in AnnotationsArtifact.initialize ."); } } @@ -147,9 +147,9 @@ */ @Override public Document describe(Document data, CallContext context) { - logger.debug("Describe: the current state is: " + getCurrentStateId()); + log.debug("Describe: the current state is: " + getCurrentStateId()); - if (logger.isDebugEnabled()) { + if (log.isDebugEnabled()) { dumpArtifact(); } @@ -213,22 +213,22 @@ RiverContext.STATE_ENGINE_KEY); for (String stateId: stateIds) { - logger.debug("Append output modes for state: " + stateId); + log.debug("Append output modes for state: " + stateId); DefaultState state = (DefaultState) engine.getState(stateId); List<Output> list = state.getOutputs(); if (list == null || list.isEmpty()) { - logger.debug("-> No output modes for this state."); + log.debug("-> No output modes for this state."); continue; } List<Facet> fs = getFacets(stateId); if (fs == null || fs.isEmpty()) { - logger.debug("No facets found."); + log.debug("No facets found."); continue; } - logger.debug("Found " + fs.size() + " facets in previous states."); + log.debug("Found " + fs.size() + " facets in previous states."); List<Output> generated = generateOutputs(list, fs); @@ -240,24 +240,24 @@ if (cur.validate(this)) { List<Output> list = cur.getOutputs(); if (list != null && list.size() > 0) { - logger.debug( + log.debug( "Append output modes for state: " + cur.getID()); List<Facet> fs = getFacets(cur.getID()); if (fs != null && fs.size() > 0) { List<Output> generated = generateOutputs(list, fs); - logger.debug("Found " + fs.size() + " current facets."); + log.debug("Found " + fs.size() + " current facets."); if (!generated.isEmpty()) { ProtocolUtils.appendOutputModes( doc, outs, generated); } else{ - logger.debug("Cannot append output to generated document."); + log.debug("Cannot append output to generated document."); } } else { - logger.debug("No facets found for the current state."); + log.debug("No facets found for the current state."); } } }