Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added ServiceController and Service supervision
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
repository
/
PolicyTypes.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
b/policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
index
ef3f42d
..
6cf8ff4
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
@@
-24,16
+24,10
@@
import java.util.HashMap;
import java.util.Map;
import org.oransc.policyagent.exceptions.ServiceException;
import java.util.Map;
import org.oransc.policyagent.exceptions.ServiceException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
public class PolicyTypes {
public class PolicyTypes {
- private static final Logger logger = LoggerFactory.getLogger(PolicyTypes.class);
-
private Map<String, PolicyType> types = new HashMap<String, PolicyType>();
private Map<String, PolicyType> types = new HashMap<String, PolicyType>();
- @Autowired
public PolicyTypes() {
}
public PolicyTypes() {
}
@@
-45,8
+39,8
@@
public class PolicyTypes {
return t;
}
return t;
}
- public synchronized void put
Type(String name,
PolicyType type) {
- types.put(
name
, type);
+ public synchronized void put
(
PolicyType type) {
+ types.put(
type.name()
, type);
}
}
}
}