[Dive4elements-commits] [PATCH 08 of 13] Add method to a access the CallContext of a ChartGenerator

Wald Commits scm-commit at wald.intevation.org
Wed Nov 7 15:58:42 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1352293959 -3600
# Node ID 47d50572844aec6f2b2a370dc5cbed79550ed82f
# Parent  af728a5e03292fc1a44aa7f13508f3e3e864d37a
Add method to a access the CallContext of a ChartGenerator

Don't access the member variable directly. Always use getters and setters to
declare a contract to another class. Public or proteced members
would extend the contract.

diff -r af728a5e0329 -r 47d50572844a flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Wed Nov 07 14:07:52 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Wed Nov 07 14:12:39 2012 +0100
@@ -1885,5 +1885,14 @@
             "chart.encoding",
             ChartExportHelper.DEFAULT_ENCODING);
     }
+
+    /**
+     * Retuns the call context. May be null if init hasn't been called yet.
+     *
+     * @return the CallContext instance
+     */
+    public CallContext getCallContext() {
+        return context;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4elements-commits mailing list