Remove old license headers
[gpl/argeo-slc.git] / org.argeo.slc.spring / src / org / argeo / slc / core / test / context / SimpleContextAware.java
index 7980e37689b137764f5aa506a89f3abac5a0d574..b2d8191909f9989cfec973f8ac7952b9a4f29689 100644 (file)
@@ -1,86 +1,71 @@
-/*\r
- * Copyright (C) 2007-2012 Argeo GmbH\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.core.test.context;\r
-\r
-import java.util.Map;\r
-import java.util.TreeMap;\r
-\r
-import org.argeo.slc.SlcException;\r
-import org.argeo.slc.runtime.test.ContextUtils;\r
-import org.argeo.slc.test.context.ContextAware;\r
-import org.argeo.slc.test.context.ParentContextAware;\r
-import org.springframework.beans.factory.InitializingBean;\r
-\r
-public class SimpleContextAware implements ContextAware, InitializingBean {\r
-       private ParentContextAware parentContext;\r
-\r
-       private Map<String, Object> values = new TreeMap<String, Object>();\r
-       private Map<String, Object> expectedValues = new TreeMap<String, Object>();\r
-\r
-       private String contextSkipFlag = DEFAULT_SKIP_FLAG;\r
-       private String contextAnyFlag = DEFAULT_ANY_FLAG;\r
-\r
-       public Map<String, Object> getValues() {\r
-               return values;\r
-       }\r
-\r
-       public void setValues(Map<String, Object> values) {\r
-               this.values = values;\r
-       }\r
-\r
-       public Map<String, Object> getExpectedValues() {\r
-               return expectedValues;\r
-       }\r
-\r
-       public void setExpectedValues(Map<String, Object> expectedValues) {\r
-               this.expectedValues = expectedValues;\r
-       }\r
-\r
-       /** Used to add this context as a child by setting a property. */\r
-       public void setParentContext(ParentContextAware parentContextAware) {\r
-               if (parentContext != null)\r
-                       throw new SlcException("Parent context already set");\r
-               this.parentContext = parentContextAware;\r
-               this.parentContext.addChildContext(this);\r
-       }\r
-\r
-       protected ParentContextAware getParentContext() {\r
-               return parentContext;\r
-       }\r
-\r
-       public void afterPropertiesSet() throws Exception {\r
-               if (parentContext != null) {\r
-                       ContextUtils.synchronize(parentContext);\r
-               }\r
-       }\r
-\r
-       public String getContextSkipFlag() {\r
-               return contextSkipFlag;\r
-       }\r
-\r
-       public void setContextSkipFlag(String contextSkipFlag) {\r
-               this.contextSkipFlag = contextSkipFlag;\r
-       }\r
-\r
-       public String getContextAnyFlag() {\r
-               return contextAnyFlag;\r
-       }\r
-\r
-       public void setContextAnyFlag(String contextAnyFlag) {\r
-               this.contextAnyFlag = contextAnyFlag;\r
-       }\r
-\r
-}\r
+package org.argeo.slc.core.test.context;
+
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.argeo.slc.SlcException;
+import org.argeo.slc.runtime.test.ContextUtils;
+import org.argeo.slc.test.context.ContextAware;
+import org.argeo.slc.test.context.ParentContextAware;
+import org.springframework.beans.factory.InitializingBean;
+
+public class SimpleContextAware implements ContextAware, InitializingBean {
+       private ParentContextAware parentContext;
+
+       private Map<String, Object> values = new TreeMap<String, Object>();
+       private Map<String, Object> expectedValues = new TreeMap<String, Object>();
+
+       private String contextSkipFlag = DEFAULT_SKIP_FLAG;
+       private String contextAnyFlag = DEFAULT_ANY_FLAG;
+
+       public Map<String, Object> getValues() {
+               return values;
+       }
+
+       public void setValues(Map<String, Object> values) {
+               this.values = values;
+       }
+
+       public Map<String, Object> getExpectedValues() {
+               return expectedValues;
+       }
+
+       public void setExpectedValues(Map<String, Object> expectedValues) {
+               this.expectedValues = expectedValues;
+       }
+
+       /** Used to add this context as a child by setting a property. */
+       public void setParentContext(ParentContextAware parentContextAware) {
+               if (parentContext != null)
+                       throw new SlcException("Parent context already set");
+               this.parentContext = parentContextAware;
+               this.parentContext.addChildContext(this);
+       }
+
+       protected ParentContextAware getParentContext() {
+               return parentContext;
+       }
+
+       public void afterPropertiesSet() throws Exception {
+               if (parentContext != null) {
+                       ContextUtils.synchronize(parentContext);
+               }
+       }
+
+       public String getContextSkipFlag() {
+               return contextSkipFlag;
+       }
+
+       public void setContextSkipFlag(String contextSkipFlag) {
+               this.contextSkipFlag = contextSkipFlag;
+       }
+
+       public String getContextAnyFlag() {
+               return contextAnyFlag;
+       }
+
+       public void setContextAnyFlag(String contextAnyFlag) {
+               this.contextAnyFlag = contextAnyFlag;
+       }
+
+}