Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add SDNR A1 client in policy-agent
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
configuration
/
ApplicationConfig.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/configuration/ApplicationConfig.java
b/policy-agent/src/main/java/org/oransc/policyagent/configuration/ApplicationConfig.java
index
1ed3fdb
..
86fd556
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/configuration/ApplicationConfig.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/configuration/ApplicationConfig.java
@@
-29,6
+29,8
@@
import java.util.Vector;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
+import lombok.Getter;
+
import org.oransc.policyagent.exceptions.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.oransc.policyagent.exceptions.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
@@
-42,7
+44,9
@@
public class ApplicationConfig {
private Collection<Observer> observers = new Vector<>();
private Map<String, RicConfig> ricConfigs = new HashMap<>();
private Collection<Observer> observers = new Vector<>();
private Map<String, RicConfig> ricConfigs = new HashMap<>();
+ @Getter
private Properties dmaapPublisherConfig;
private Properties dmaapPublisherConfig;
+ @Getter
private Properties dmaapConsumerConfig;
@Autowired
private Properties dmaapConsumerConfig;
@Autowired
@@
-73,14
+77,6
@@
public class ApplicationConfig {
throw new ServiceException("Could not find ric: " + ricName);
}
throw new ServiceException("Could not find ric: " + ricName);
}
- public Properties getDmaapPublisherConfig() {
- return dmaapConsumerConfig;
- }
-
- public Properties getDmaapConsumerConfig() {
- return dmaapConsumerConfig;
- }
-
public static enum RicConfigUpdate {
ADDED, CHANGED, REMOVED
}
public static enum RicConfigUpdate {
ADDED, CHANGED, REMOVED
}