{"action":"opened","number":395,"pull_request":{"url":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/395","id":26930891,"html_url":"https://github.com/marcellustavares/liferay-portal/pull/395","diff_url":"https://github.com/marcellustavares/liferay-portal/pull/395.diff","patch_url":"https://github.com/marcellustavares/liferay-portal/pull/395.patch","issue_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/395","number":395,"state":"open","locked":false,"title":"LPS-51814 OSGI Templates","user":{"login":"peterfellwock","id":7771558,"avatar_url":"https://avatars.githubusercontent.com/u/7771558?v=3","gravatar_id":"","url":"https://api.github.com/users/peterfellwock","html_url":"https://github.com/peterfellwock","followers_url":"https://api.github.com/users/peterfellwock/followers","following_url":"https://api.github.com/users/peterfellwock/following{/other_user}","gists_url":"https://api.github.com/users/peterfellwock/gists{/gist_id}","starred_url":"https://api.github.com/users/peterfellwock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterfellwock/subscriptions","organizations_url":"https://api.github.com/users/peterfellwock/orgs","repos_url":"https://api.github.com/users/peterfellwock/repos","events_url":"https://api.github.com/users/peterfellwock/events{/privacy}","received_events_url":"https://api.github.com/users/peterfellwock/received_events","type":"User","site_admin":false},"body":"@marcellustavares this is an update to the approach you had in 6f28b711608b55fc9ec5bc1f18481c26749ded17 The problem is with TemplateManagers.init() and its dependance on ResourceLoaders which I had to make into a OSGI container. Util-spring will look weird since its not alphabetically ordered and there is a double dependance since the depends-on feature does not wait for the actual bean/service to start, therefore injection is the only way to stall the TemplateManagers. I spoke with both @brianchandotcom and @rotty3000 and in order for me to move on to separate freemarker as an OSGI bundle, the following changes need to be merged. Please take a look at all commits labelled and  \tLPS-51814 (Template OSGI) and then pass through your normal channels to get this merged.","created_at":"2015-01-07T01:03:57Z","updated_at":"2015-01-07T01:03:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/395/commits","review_comments_url":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/395/comments","review_comment_url":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/comments/{number}","comments_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/395/comments","statuses_url":"https://api.github.com/repos/marcellustavares/liferay-portal/statuses/f25011a4a8c19af76dc2362135bfe24a20e83b06","head":{"label":"peterfellwock:LPS-51814-PFELLWOCK","ref":"LPS-51814-PFELLWOCK","sha":"f25011a4a8c19af76dc2362135bfe24a20e83b06","user":{"login":"peterfellwock","id":7771558,"avatar_url":"https://avatars.githubusercontent.com/u/7771558?v=3","gravatar_id":"","url":"https://api.github.com/users/peterfellwock","html_url":"https://github.com/peterfellwock","followers_url":"https://api.github.com/users/peterfellwock/followers","following_url":"https://api.github.com/users/peterfellwock/following{/other_user}","gists_url":"https://api.github.com/users/peterfellwock/gists{/gist_id}","starred_url":"https://api.github.com/users/peterfellwock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterfellwock/subscriptions","organizations_url":"https://api.github.com/users/peterfellwock/orgs","repos_url":"https://api.github.com/users/peterfellwock/repos","events_url":"https://api.github.com/users/peterfellwock/events{/privacy}","received_events_url":"https://api.github.com/users/peterfellwock/received_events","type":"User","site_admin":false},"repo":{"id":20415632,"name":"liferay-portal","full_name":"peterfellwock/liferay-portal","owner":{"login":"peterfellwock","id":7771558,"avatar_url":"https://avatars.githubusercontent.com/u/7771558?v=3","gravatar_id":"","url":"https://api.github.com/users/peterfellwock","html_url":"https://github.com/peterfellwock","followers_url":"https://api.github.com/users/peterfellwock/followers","following_url":"https://api.github.com/users/peterfellwock/following{/other_user}","gists_url":"https://api.github.com/users/peterfellwock/gists{/gist_id}","starred_url":"https://api.github.com/users/peterfellwock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterfellwock/subscriptions","organizations_url":"https://api.github.com/users/peterfellwock/orgs","repos_url":"https://api.github.com/users/peterfellwock/repos","events_url":"https://api.github.com/users/peterfellwock/events{/privacy}","received_events_url":"https://api.github.com/users/peterfellwock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peterfellwock/liferay-portal","description":"","fork":true,"url":"https://api.github.com/repos/peterfellwock/liferay-portal","forks_url":"https://api.github.com/repos/peterfellwock/liferay-portal/forks","keys_url":"https://api.github.com/repos/peterfellwock/liferay-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peterfellwock/liferay-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peterfellwock/liferay-portal/teams","hooks_url":"https://api.github.com/repos/peterfellwock/liferay-portal/hooks","issue_events_url":"https://api.github.com/repos/peterfellwock/liferay-portal/issues/events{/number}","events_url":"https://api.github.com/repos/peterfellwock/liferay-portal/events","assignees_url":"https://api.github.com/repos/peterfellwock/liferay-portal/assignees{/user}","branches_url":"https://api.github.com/repos/peterfellwock/liferay-portal/branches{/branch}","tags_url":"https://api.github.com/repos/peterfellwock/liferay-portal/tags","blobs_url":"https://api.github.com/repos/peterfellwock/liferay-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peterfellwock/liferay-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peterfellwock/liferay-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/peterfellwock/liferay-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peterfellwock/liferay-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/peterfellwock/liferay-portal/languages","stargazers_url":"https://api.github.com/repos/peterfellwock/liferay-portal/stargazers","contributors_url":"https://api.github.com/repos/peterfellwock/liferay-portal/contributors","subscribers_url":"https://api.github.com/repos/peterfellwock/liferay-portal/subscribers","subscription_url":"https://api.github.com/repos/peterfellwock/liferay-portal/subscription","commits_url":"https://api.github.com/repos/peterfellwock/liferay-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/peterfellwock/liferay-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/peterfellwock/liferay-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/peterfellwock/liferay-portal/issues/comments/{number}","contents_url":"https://api.github.com/repos/peterfellwock/liferay-portal/contents/{+path}","compare_url":"https://api.github.com/repos/peterfellwock/liferay-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peterfellwock/liferay-portal/merges","archive_url":"https://api.github.com/repos/peterfellwock/liferay-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peterfellwock/liferay-portal/downloads","issues_url":"https://api.github.com/repos/peterfellwock/liferay-portal/issues{/number}","pulls_url":"https://api.github.com/repos/peterfellwock/liferay-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/peterfellwock/liferay-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/peterfellwock/liferay-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peterfellwock/liferay-portal/labels{/name}","releases_url":"https://api.github.com/repos/peterfellwock/liferay-portal/releases{/id}","created_at":"2014-06-02T19:00:02Z","updated_at":"2015-01-07T00:55:19Z","pushed_at":"2015-01-07T00:55:18Z","git_url":"git://github.com/peterfellwock/liferay-portal.git","ssh_url":"git@github.com:peterfellwock/liferay-portal.git","clone_url":"https://github.com/peterfellwock/liferay-portal.git","svn_url":"https://github.com/peterfellwock/liferay-portal","homepage":"http://liferay.com","size":3971760,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"marcellustavares:master","ref":"master","sha":"65e8747f4a12021134074defde28bed84bdab2a5","user":{"login":"marcellustavares","id":286892,"avatar_url":"https://avatars.githubusercontent.com/u/286892?v=3","gravatar_id":"","url":"https://api.github.com/users/marcellustavares","html_url":"https://github.com/marcellustavares","followers_url":"https://api.github.com/users/marcellustavares/followers","following_url":"https://api.github.com/users/marcellustavares/following{/other_user}","gists_url":"https://api.github.com/users/marcellustavares/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellustavares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellustavares/subscriptions","organizations_url":"https://api.github.com/users/marcellustavares/orgs","repos_url":"https://api.github.com/users/marcellustavares/repos","events_url":"https://api.github.com/users/marcellustavares/events{/privacy}","received_events_url":"https://api.github.com/users/marcellustavares/received_events","type":"User","site_admin":false},"repo":{"id":1923800,"name":"liferay-portal","full_name":"marcellustavares/liferay-portal","owner":{"login":"marcellustavares","id":286892,"avatar_url":"https://avatars.githubusercontent.com/u/286892?v=3","gravatar_id":"","url":"https://api.github.com/users/marcellustavares","html_url":"https://github.com/marcellustavares","followers_url":"https://api.github.com/users/marcellustavares/followers","following_url":"https://api.github.com/users/marcellustavares/following{/other_user}","gists_url":"https://api.github.com/users/marcellustavares/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellustavares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellustavares/subscriptions","organizations_url":"https://api.github.com/users/marcellustavares/orgs","repos_url":"https://api.github.com/users/marcellustavares/repos","events_url":"https://api.github.com/users/marcellustavares/events{/privacy}","received_events_url":"https://api.github.com/users/marcellustavares/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcellustavares/liferay-portal","description":"","fork":true,"url":"https://api.github.com/repos/marcellustavares/liferay-portal","forks_url":"https://api.github.com/repos/marcellustavares/liferay-portal/forks","keys_url":"https://api.github.com/repos/marcellustavares/liferay-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcellustavares/liferay-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcellustavares/liferay-portal/teams","hooks_url":"https://api.github.com/repos/marcellustavares/liferay-portal/hooks","issue_events_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/events{/number}","events_url":"https://api.github.com/repos/marcellustavares/liferay-portal/events","assignees_url":"https://api.github.com/repos/marcellustavares/liferay-portal/assignees{/user}","branches_url":"https://api.github.com/repos/marcellustavares/liferay-portal/branches{/branch}","tags_url":"https://api.github.com/repos/marcellustavares/liferay-portal/tags","blobs_url":"https://api.github.com/repos/marcellustavares/liferay-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcellustavares/liferay-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcellustavares/liferay-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcellustavares/liferay-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcellustavares/liferay-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/marcellustavares/liferay-portal/languages","stargazers_url":"https://api.github.com/repos/marcellustavares/liferay-portal/stargazers","contributors_url":"https://api.github.com/repos/marcellustavares/liferay-portal/contributors","subscribers_url":"https://api.github.com/repos/marcellustavares/liferay-portal/subscribers","subscription_url":"https://api.github.com/repos/marcellustavares/liferay-portal/subscription","commits_url":"https://api.github.com/repos/marcellustavares/liferay-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcellustavares/liferay-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcellustavares/liferay-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/comments/{number}","contents_url":"https://api.github.com/repos/marcellustavares/liferay-portal/contents/{+path}","compare_url":"https://api.github.com/repos/marcellustavares/liferay-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcellustavares/liferay-portal/merges","archive_url":"https://api.github.com/repos/marcellustavares/liferay-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcellustavares/liferay-portal/downloads","issues_url":"https://api.github.com/repos/marcellustavares/liferay-portal/issues{/number}","pulls_url":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/marcellustavares/liferay-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/marcellustavares/liferay-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcellustavares/liferay-portal/labels{/name}","releases_url":"https://api.github.com/repos/marcellustavares/liferay-portal/releases{/id}","created_at":"2011-06-20T14:02:06Z","updated_at":"2015-01-06T16:22:29Z","pushed_at":"2015-01-06T21:03:08Z","git_url":"git://github.com/marcellustavares/liferay-portal.git","ssh_url":"git@github.com:marcellustavares/liferay-portal.git","clone_url":"https://github.com/marcellustavares/liferay-portal.git","svn_url":"https://github.com/marcellustavares/liferay-portal","homepage":"http://liferay.com","size":3928363,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/395"},"html":{"href":"https://github.com/marcellustavares/liferay-portal/pull/395"},"issue":{"href":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/395"},"comments":{"href":"https://api.github.com/repos/marcellustavares/liferay-portal/issues/395/comments"},"review_comments":{"href":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/395/comments"},"review_comment":{"href":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/marcellustavares/liferay-portal/pulls/395/commits"},"statuses":{"href":"https://api.github.com/repos/marcellustavares/liferay-portal/statuses/f25011a4a8c19af76dc2362135bfe24a20e83b06"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":40,"additions":669,"deletions":607,"changed_files":38}}