{"action":"created","issue":{"url":"https://api.github.com/repos/ninjaframework/ninja/issues/477","repository_url":"https://api.github.com/repos/ninjaframework/ninja","labels_url":"https://api.github.com/repos/ninjaframework/ninja/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/ninjaframework/ninja/issues/477/comments","events_url":"https://api.github.com/repos/ninjaframework/ninja/issues/477/events","html_url":"https://github.com/ninjaframework/ninja/pull/477","id":137349048,"number":477,"title":"New AutoStandalone class to find a standalone for running and unit tests","user":{"login":"jjlauer","id":585730,"avatar_url":"https://avatars.githubusercontent.com/u/585730?v=3","gravatar_id":"","url":"https://api.github.com/users/jjlauer","html_url":"https://github.com/jjlauer","followers_url":"https://api.github.com/users/jjlauer/followers","following_url":"https://api.github.com/users/jjlauer/following{/other_user}","gists_url":"https://api.github.com/users/jjlauer/gists{/gist_id}","starred_url":"https://api.github.com/users/jjlauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjlauer/subscriptions","organizations_url":"https://api.github.com/users/jjlauer/orgs","repos_url":"https://api.github.com/users/jjlauer/repos","events_url":"https://api.github.com/users/jjlauer/events{/privacy}","received_events_url":"https://api.github.com/users/jjlauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-29T19:34:26Z","updated_at":"2016-03-04T10:00:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ninjaframework/ninja/pulls/477","html_url":"https://github.com/ninjaframework/ninja/pull/477","diff_url":"https://github.com/ninjaframework/ninja/pull/477.diff","patch_url":"https://github.com/ninjaframework/ninja/pull/477.patch"},"body":"With my work on [Ninja-Undertow](https://github.com/fizzed/ninja-undertow), I've been finding it a bit repetitious to become the default standalone in my projects.  Thus, `AutoStandalone` is a new feature where Ninja will find the standalone to use based on a few rules.  First, the current method of system property 'ninja.standalone.class' still is the first preference.  Then, META-INF/services via java.util.ServiceLoader will be used.  Finally, it'll fallback to jetty.\r\n\r\nWith this change, to pickup undertow (or any external standalone, its as simple as adding it to the classpath.  The caveat is that multiple META-INF/services on the classpath will mean the first one wins, but that's still workable since the user can explicitly then set a system property.  NinjaJetty does not have a META-INF/services since it's still the default."},"comment":{"url":"https://api.github.com/repos/ninjaframework/ninja/issues/comments/192215740","html_url":"https://github.com/ninjaframework/ninja/pull/477#issuecomment-192215740","issue_url":"https://api.github.com/repos/ninjaframework/ninja/issues/477","id":192215740,"user":{"login":"raphaelbauer","id":524072,"avatar_url":"https://avatars.githubusercontent.com/u/524072?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelbauer","html_url":"https://github.com/raphaelbauer","followers_url":"https://api.github.com/users/raphaelbauer/followers","following_url":"https://api.github.com/users/raphaelbauer/following{/other_user}","gists_url":"https://api.github.com/users/raphaelbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelbauer/subscriptions","organizations_url":"https://api.github.com/users/raphaelbauer/orgs","repos_url":"https://api.github.com/users/raphaelbauer/repos","events_url":"https://api.github.com/users/raphaelbauer/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelbauer/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T10:00:33Z","updated_at":"2016-03-04T10:00:33Z","body":"Nice implementation! Feel free to merge anytime :)"}}