diff gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionFactory.java @ 171:7fb9441dd8af

Format Code to max 80 Chars per Row and Cleanup gnv-artifacts/trunk@208 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 09 Oct 2009 07:54:48 +0000
parents 4d6a82b96059
children 734ac082c8d1
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionFactory.java	Fri Oct 09 07:49:47 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionFactory.java	Fri Oct 09 07:54:48 2009 +0000
@@ -11,7 +11,7 @@
 
 /**
  * @author Tim Englich <tim.englich@intevation.de>
- *
+ * 
  */
 public class TransitionFactory {
 
@@ -19,36 +19,37 @@
      * the logger, used to log exceptions and additonaly information
      */
     private static Logger log = Logger.getLogger(GNVArtifactBase.class);
-    
+
     private static TransitionFactory instance = null;
+
     /**
      * Constructor
      */
     public TransitionFactory() {
         super();
     }
-    
-    public static TransitionFactory getInstance(){
-        if (instance == null){
+
+    public static TransitionFactory getInstance() {
+        if (instance == null) {
             instance = new TransitionFactory();
         }
         return instance;
     }
-    
-    
-    public Transition createTransition(Node configuration){
+
+    public Transition createTransition(Node configuration) {
         log.debug("TransitionFactory.createTransition");
         Transition transition = null;
         try {
-            String classname = Config.getStringXPath(configuration, "@transition");
-            transition = (Transition)(Class.forName(classname).newInstance());
+            String classname = Config.getStringXPath(configuration,
+                    "@transition");
+            transition = (Transition) (Class.forName(classname).newInstance());
             transition.setup(configuration);
         } catch (InstantiationException e) {
-            log.error(e,e);
+            log.error(e, e);
         } catch (IllegalAccessException e) {
-            log.error(e,e);
+            log.error(e, e);
         } catch (ClassNotFoundException e) {
-            log.error(e,e);
+            log.error(e, e);
         }
         return transition;
     }

http://dive4elements.wald.intevation.org