]> git.mxchange.org Git - jjobs-war.git/commitdiff
Use own method getStringContextParameter() for a bit encapsulation and DRY:
authorRoland Haeder <roland@mxchange.org>
Tue, 9 Aug 2016 20:19:49 +0000 (22:19 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 19 Aug 2016 20:34:41 +0000 (22:34 +0200)
DRY = Don't Repeat Yourself (avoid duplicate code which means duplicated
maintenance of code)

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/BaseJobsController.java

index f9a5adde779dfad03edd48666800ab57e0bbb16a..2a4a4ebb4077a8ea5ade5c19ec5ab17eb2163276 100644 (file)
@@ -92,7 +92,7 @@ public abstract class BaseJobsController implements Serializable {
                }
 
                // Try to get context parameter
-               String contextParameter = FacesContext.getCurrentInstance().getExternalContext().getInitParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N
+               String contextParameter = this.getStringContextParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N
 
                // Is it set and true?
                boolean isEnabled = ((contextParameter instanceof String) && (contextParameter.equals("true"))); //NOI18N