commit | 8a7733258993a796d3148f0f546b9aeb54ce819e | [log] [tgz] |
---|---|---|
author | jingan <ganjinchina+onos@gmail.com> | Tue Mar 21 16:12:48 2017 -0700 |
committer | Henry Yu <henry.yu1@huawei.com> | Wed Mar 22 13:32:11 2017 +0000 |
tree | d152a08ab76de59269edc434cf0a132fb3010fa5 | |
parent | 425837f935246075bff1ac6816abfc22d297ba45 [diff] |
Change @Component(immediate) to true for restconf app manager and restconfBroker Change-Id: Ife2be1352732ef755a4a1fde96152519883264cf
diff --git a/apps/restconf/restconfmgr/src/main/java/org/onosproject/restconf/restconfmanager/RestconfManager.java b/apps/restconf/restconfmgr/src/main/java/org/onosproject/restconf/restconfmanager/RestconfManager.java index 9054993..256b3a3 100644 --- a/apps/restconf/restconfmgr/src/main/java/org/onosproject/restconf/restconfmanager/RestconfManager.java +++ b/apps/restconf/restconfmgr/src/main/java/org/onosproject/restconf/restconfmanager/RestconfManager.java
@@ -72,14 +72,7 @@ * on the YANG data objects (i.e., resource id, yang data node). */ -/** - * Implementation of the RestconfService interface. The class is designed - * as a Apache Flex component. Note that to avoid unnecessary - * activation, the @Component annotation's immediate parameter is set to false. - * So the component is not activated until a RESTCONF request is received by - * the RESTCONF Protocol Proxy (RPP) module, which consumes the service. - */ -@Component(immediate = false) +@Component(immediate = true) @Service public class RestconfManager implements RestconfService {
diff --git a/protocols/restconf/server/restconfmgr/src/main/java/org/onosproject/protocol/restconf/server/restconfmanager/RestconfBrokerImpl.java b/protocols/restconf/server/restconfmgr/src/main/java/org/onosproject/protocol/restconf/server/restconfmanager/RestconfBrokerImpl.java index 46768d9..e59805f 100644 --- a/protocols/restconf/server/restconfmgr/src/main/java/org/onosproject/protocol/restconf/server/restconfmanager/RestconfBrokerImpl.java +++ b/protocols/restconf/server/restconfmgr/src/main/java/org/onosproject/protocol/restconf/server/restconfmanager/RestconfBrokerImpl.java
@@ -43,7 +43,7 @@ /** * Implementation of the RestconfServiceBroker interface. */ -@Component(immediate = false) +@Component(immediate = true) @Service public class RestconfBrokerImpl implements RestconfServiceBroker {