]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/ExceptionIfInitCalledTwice.java
Clarify SLC project structure.
[gpl/argeo-slc.git] / org.argeo.slc.spring / ext / test / org / argeo / slc / core / execution / ExceptionIfInitCalledTwice.java
diff --git a/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/ExceptionIfInitCalledTwice.java b/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/ExceptionIfInitCalledTwice.java
deleted file mode 100644 (file)
index 7ba7c82..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package org.argeo.slc.core.execution;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.argeo.slc.SlcException;
-import org.springframework.beans.factory.InitializingBean;
-
-public class ExceptionIfInitCalledTwice implements Runnable, InitializingBean {
-       private final static Log log = LogFactory
-                       .getLog(ExceptionIfInitCalledTwice.class);
-
-       private Boolean calledOnce = false;
-
-       public void run() {
-               log.info(getClass().getSimpleName() + " ran properly");
-       }
-
-       public void afterPropertiesSet() throws Exception {
-               log.info(getClass().getSimpleName() + " init method called");
-
-               if (calledOnce)
-                       throw new SlcException(getClass().getSimpleName()
-                                       + "init method called twice.");
-               else
-                       calledOnce = true;
-       }
-}