BATCH-671: Added a new class, JobParameter, that represents an individual parameter. Also converted BatchStatus and ParameterType typesafe enumerations to java 5 enums.

This commit is contained in:
lucasward
2008-07-26 01:39:14 +00:00
parent a641c28135
commit 170d9d506f

View File

@@ -19,7 +19,6 @@ package org.springframework.batch.item;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.Map.Entry;
@@ -300,24 +299,6 @@ public class ExecutionContext implements Serializable {
return map.containsValue(value);
}
/**
* Returns a <code>Properties</code> object containing <code>String</code>
* versions of the contents of the context.
*
* @return Contents of context as a {@link java.util.Properties}
*
* @deprecated to be removed with no replacement in 2.0. Should not be part
* of public API (test purposes only)
*/
public Properties getProperties() {
Properties props = new Properties();
for (Entry<String, Object> entry : map.entrySet()) {
props.setProperty(entry.getKey(), entry.getValue().toString());
}
return props;
}
/*
* (non-Javadoc)
*