{"action":"created","comment":{"url":"https://api.github.com/repos/Netflix/archaius/pulls/comments/42056726","id":42056726,"diff_hunk":"@@ -225,243 +227,158 @@ public Config getPrefixedView(String prefix) {\n         return result;\n     }\n \n-    @Override\n-    public Long getLong(String key) {\n-        String value = getString(key);\n-        if (value == null) \n+    protected <T> T getValue(Class<T> type, String key) {\n+        Object rawProp = getRawProperty(key);\n+        if (rawProp == null) {\n             return notFound(key);\n-        try {\n-            return decoder.decode(Long.class, value);\n         }\n-        catch (NumberFormatException e) {\n-            return parseError(key, value, e);\n+        if (rawProp instanceof String) {\n+            try {\n+                String value = interpolator.create(lookup).resolve(rawProp.toString());\n+                if (type.equals(boolean.class) || type.equals(Boolean.class)) {","path":"archaius2-core/src/main/java/com/netflix/archaius/config/AbstractConfig.java","position":42,"original_position":42,"commit_id":"4c2d46b9d44602c4ba46b3148f5c6dc2c10c6a71","original_commit_id":"4c2d46b9d44602c4ba46b3148f5c6dc2c10c6a71","user":{"login":"elandau","id":913564,"avatar_url":"https://avatars.githubusercontent.com/u/913564?v=3","gravatar_id":"","url":"https://api.github.com/users/elandau","html_url":"https://github.com/elandau","followers_url":"https://api.github.com/users/elandau/followers","following_url":"https://api.github.com/users/elandau/following{/other_user}","gists_url":"https://api.github.com/users/elandau/gists{/gist_id}","starred_url":"https://api.github.com/users/elandau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elandau/subscriptions","organizations_url":"https://api.github.com/users/elandau/orgs","repos_url":"https://api.github.com/users/elandau/repos","events_url":"https://api.github.com/users/elandau/events{/privacy}","received_events_url":"https://api.github.com/users/elandau/received_events","type":"User","site_admin":false},"body":"This should be part of the decoder","created_at":"2015-10-14T21:35:17Z","updated_at":"2015-10-14T21:35:17Z","html_url":"https://github.com/Netflix/archaius/pull/360#discussion_r42056726","pull_request_url":"https://api.github.com/repos/Netflix/archaius/pulls/360","_links":{"self":{"href":"https://api.github.com/repos/Netflix/archaius/pulls/comments/42056726"},"html":{"href":"https://github.com/Netflix/archaius/pull/360#discussion_r42056726"},"pull_request":{"href":"https://api.github.com/repos/Netflix/archaius/pulls/360"}}},"pull_request":{"url":"https://api.github.com/repos/Netflix/archaius/pulls/360","id":47717687,"html_url":"https://github.com/Netflix/archaius/pull/360","diff_url":"https://github.com/Netflix/archaius/pull/360.diff","patch_url":"https://github.com/Netflix/archaius/pull/360.patch","issue_url":"https://api.github.com/repos/Netflix/archaius/issues/360","number":360,"state":"open","locked":false,"title":"issues #353, #354. Adding ability to set new list delimiter and prope…","user":{"login":"howardyuan","id":2171824,"avatar_url":"https://avatars.githubusercontent.com/u/2171824?v=3","gravatar_id":"","url":"https://api.github.com/users/howardyuan","html_url":"https://github.com/howardyuan","followers_url":"https://api.github.com/users/howardyuan/followers","following_url":"https://api.github.com/users/howardyuan/following{/other_user}","gists_url":"https://api.github.com/users/howardyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/howardyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardyuan/subscriptions","organizations_url":"https://api.github.com/users/howardyuan/orgs","repos_url":"https://api.github.com/users/howardyuan/repos","events_url":"https://api.github.com/users/howardyuan/events{/privacy}","received_events_url":"https://api.github.com/users/howardyuan/received_events","type":"User","site_admin":false},"body":"…rty is stored as Object instead of String.\r\n\r\nThis PR covers two issues. One is to be able to set a new delimiter. The other is treat Property value as Object instead of String. For now, only turns on the storing for Settable config. In the future, it's possible we need to extend to MapConfig.","created_at":"2015-10-14T21:31:05Z","updated_at":"2015-10-14T21:35:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3054ca98add3de087b7ba01a9b095ad711fe9490","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Netflix/archaius/pulls/360/commits","review_comments_url":"https://api.github.com/repos/Netflix/archaius/pulls/360/comments","review_comment_url":"https://api.github.com/repos/Netflix/archaius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Netflix/archaius/issues/360/comments","statuses_url":"https://api.github.com/repos/Netflix/archaius/statuses/4c2d46b9d44602c4ba46b3148f5c6dc2c10c6a71","head":{"label":"howardyuan:2.x","ref":"2.x","sha":"4c2d46b9d44602c4ba46b3148f5c6dc2c10c6a71","user":{"login":"howardyuan","id":2171824,"avatar_url":"https://avatars.githubusercontent.com/u/2171824?v=3","gravatar_id":"","url":"https://api.github.com/users/howardyuan","html_url":"https://github.com/howardyuan","followers_url":"https://api.github.com/users/howardyuan/followers","following_url":"https://api.github.com/users/howardyuan/following{/other_user}","gists_url":"https://api.github.com/users/howardyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/howardyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardyuan/subscriptions","organizations_url":"https://api.github.com/users/howardyuan/orgs","repos_url":"https://api.github.com/users/howardyuan/repos","events_url":"https://api.github.com/users/howardyuan/events{/privacy}","received_events_url":"https://api.github.com/users/howardyuan/received_events","type":"User","site_admin":false},"repo":{"id":41696333,"name":"archaius","full_name":"howardyuan/archaius","owner":{"login":"howardyuan","id":2171824,"avatar_url":"https://avatars.githubusercontent.com/u/2171824?v=3","gravatar_id":"","url":"https://api.github.com/users/howardyuan","html_url":"https://github.com/howardyuan","followers_url":"https://api.github.com/users/howardyuan/followers","following_url":"https://api.github.com/users/howardyuan/following{/other_user}","gists_url":"https://api.github.com/users/howardyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/howardyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardyuan/subscriptions","organizations_url":"https://api.github.com/users/howardyuan/orgs","repos_url":"https://api.github.com/users/howardyuan/repos","events_url":"https://api.github.com/users/howardyuan/events{/privacy}","received_events_url":"https://api.github.com/users/howardyuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/howardyuan/archaius","description":"Library for configuration management API","fork":true,"url":"https://api.github.com/repos/howardyuan/archaius","forks_url":"https://api.github.com/repos/howardyuan/archaius/forks","keys_url":"https://api.github.com/repos/howardyuan/archaius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/howardyuan/archaius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/howardyuan/archaius/teams","hooks_url":"https://api.github.com/repos/howardyuan/archaius/hooks","issue_events_url":"https://api.github.com/repos/howardyuan/archaius/issues/events{/number}","events_url":"https://api.github.com/repos/howardyuan/archaius/events","assignees_url":"https://api.github.com/repos/howardyuan/archaius/assignees{/user}","branches_url":"https://api.github.com/repos/howardyuan/archaius/branches{/branch}","tags_url":"https://api.github.com/repos/howardyuan/archaius/tags","blobs_url":"https://api.github.com/repos/howardyuan/archaius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/howardyuan/archaius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/howardyuan/archaius/git/refs{/sha}","trees_url":"https://api.github.com/repos/howardyuan/archaius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/howardyuan/archaius/statuses/{sha}","languages_url":"https://api.github.com/repos/howardyuan/archaius/languages","stargazers_url":"https://api.github.com/repos/howardyuan/archaius/stargazers","contributors_url":"https://api.github.com/repos/howardyuan/archaius/contributors","subscribers_url":"https://api.github.com/repos/howardyuan/archaius/subscribers","subscription_url":"https://api.github.com/repos/howardyuan/archaius/subscription","commits_url":"https://api.github.com/repos/howardyuan/archaius/commits{/sha}","git_commits_url":"https://api.github.com/repos/howardyuan/archaius/git/commits{/sha}","comments_url":"https://api.github.com/repos/howardyuan/archaius/comments{/number}","issue_comment_url":"https://api.github.com/repos/howardyuan/archaius/issues/comments{/number}","contents_url":"https://api.github.com/repos/howardyuan/archaius/contents/{+path}","compare_url":"https://api.github.com/repos/howardyuan/archaius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/howardyuan/archaius/merges","archive_url":"https://api.github.com/repos/howardyuan/archaius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/howardyuan/archaius/downloads","issues_url":"https://api.github.com/repos/howardyuan/archaius/issues{/number}","pulls_url":"https://api.github.com/repos/howardyuan/archaius/pulls{/number}","milestones_url":"https://api.github.com/repos/howardyuan/archaius/milestones{/number}","notifications_url":"https://api.github.com/repos/howardyuan/archaius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/howardyuan/archaius/labels{/name}","releases_url":"https://api.github.com/repos/howardyuan/archaius/releases{/id}","created_at":"2015-08-31T19:35:40Z","updated_at":"2015-08-31T19:35:41Z","pushed_at":"2015-10-14T21:27:59Z","git_url":"git://github.com/howardyuan/archaius.git","ssh_url":"git@github.com:howardyuan/archaius.git","clone_url":"https://github.com/howardyuan/archaius.git","svn_url":"https://github.com/howardyuan/archaius","homepage":"","size":2868,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Netflix:2.x","ref":"2.x","sha":"39754fc484a5a50af310f3ed8a1a054ee5933427","user":{"login":"Netflix","id":913567,"avatar_url":"https://avatars.githubusercontent.com/u/913567?v=3","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"repo":{"id":4291387,"name":"archaius","full_name":"Netflix/archaius","owner":{"login":"Netflix","id":913567,"avatar_url":"https://avatars.githubusercontent.com/u/913567?v=3","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Netflix/archaius","description":"Library for configuration management API","fork":false,"url":"https://api.github.com/repos/Netflix/archaius","forks_url":"https://api.github.com/repos/Netflix/archaius/forks","keys_url":"https://api.github.com/repos/Netflix/archaius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Netflix/archaius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Netflix/archaius/teams","hooks_url":"https://api.github.com/repos/Netflix/archaius/hooks","issue_events_url":"https://api.github.com/repos/Netflix/archaius/issues/events{/number}","events_url":"https://api.github.com/repos/Netflix/archaius/events","assignees_url":"https://api.github.com/repos/Netflix/archaius/assignees{/user}","branches_url":"https://api.github.com/repos/Netflix/archaius/branches{/branch}","tags_url":"https://api.github.com/repos/Netflix/archaius/tags","blobs_url":"https://api.github.com/repos/Netflix/archaius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Netflix/archaius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Netflix/archaius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Netflix/archaius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Netflix/archaius/statuses/{sha}","languages_url":"https://api.github.com/repos/Netflix/archaius/languages","stargazers_url":"https://api.github.com/repos/Netflix/archaius/stargazers","contributors_url":"https://api.github.com/repos/Netflix/archaius/contributors","subscribers_url":"https://api.github.com/repos/Netflix/archaius/subscribers","subscription_url":"https://api.github.com/repos/Netflix/archaius/subscription","commits_url":"https://api.github.com/repos/Netflix/archaius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Netflix/archaius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Netflix/archaius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Netflix/archaius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Netflix/archaius/contents/{+path}","compare_url":"https://api.github.com/repos/Netflix/archaius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Netflix/archaius/merges","archive_url":"https://api.github.com/repos/Netflix/archaius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Netflix/archaius/downloads","issues_url":"https://api.github.com/repos/Netflix/archaius/issues{/number}","pulls_url":"https://api.github.com/repos/Netflix/archaius/pulls{/number}","milestones_url":"https://api.github.com/repos/Netflix/archaius/milestones{/number}","notifications_url":"https://api.github.com/repos/Netflix/archaius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Netflix/archaius/labels{/name}","releases_url":"https://api.github.com/repos/Netflix/archaius/releases{/id}","created_at":"2012-05-11T00:07:05Z","updated_at":"2015-10-14T16:05:12Z","pushed_at":"2015-10-14T21:31:06Z","git_url":"git://github.com/Netflix/archaius.git","ssh_url":"git@github.com:Netflix/archaius.git","clone_url":"https://github.com/Netflix/archaius.git","svn_url":"https://github.com/Netflix/archaius","homepage":"","size":4998,"stargazers_count":699,"watchers_count":699,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":154,"mirror_url":null,"open_issues_count":62,"forks":154,"open_issues":62,"watchers":699,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Netflix/archaius/pulls/360"},"html":{"href":"https://github.com/Netflix/archaius/pull/360"},"issue":{"href":"https://api.github.com/repos/Netflix/archaius/issues/360"},"comments":{"href":"https://api.github.com/repos/Netflix/archaius/issues/360/comments"},"review_comments":{"href":"https://api.github.com/repos/Netflix/archaius/pulls/360/comments"},"review_comment":{"href":"https://api.github.com/repos/Netflix/archaius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Netflix/archaius/pulls/360/commits"},"statuses":{"href":"https://api.github.com/repos/Netflix/archaius/statuses/4c2d46b9d44602c4ba46b3148f5c6dc2c10c6a71"}}}}