ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject incubator-ranger git commit: RANGER-274: TagREST updated to move initialziation of tagStore from constructor to a PostConstruct method
Date Tue, 07 Jul 2015 08:10:19 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/tag-policy fa6b45d20 -> 024dfbf09


RANGER-274: TagREST updated to move initialziation of tagStore from constructor to a PostConstruct
method


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/024dfbf0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/024dfbf0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/024dfbf0

Branch: refs/heads/tag-policy
Commit: 024dfbf09638bb7a98b955cd3e3f9b8c45eefee0
Parents: fa6b45d
Author: Madhan Neethiraj <madhan@apache.org>
Authored: Tue Jul 7 13:02:50 2015 +0530
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Tue Jul 7 13:02:50 2015 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/ranger/rest/TagREST.java          | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/024dfbf0/security-admin/src/main/java/org/apache/ranger/rest/TagREST.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/rest/TagREST.java b/security-admin/src/main/java/org/apache/ranger/rest/TagREST.java
index f730e49..4d97826 100644
--- a/security-admin/src/main/java/org/apache/ranger/rest/TagREST.java
+++ b/security-admin/src/main/java/org/apache/ranger/rest/TagREST.java
@@ -39,8 +39,10 @@ import org.springframework.stereotype.Component;
 import org.springframework.transaction.annotation.Propagation;
 import org.springframework.transaction.annotation.Transactional;
 
+import javax.annotation.PostConstruct;
 import javax.servlet.http.HttpServletResponse;
 import javax.ws.rs.*;
+
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
@@ -73,6 +75,10 @@ public class TagREST {
     private TagStore tagStore;
 
     public TagREST() {
+    }
+
+    @PostConstruct
+    public void initStore() {
         tagStore = TagFileStore.getInstance();
         tagStore.setServiceStore(svcStore);
     }


Mime
View raw message