[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated WELD-2258 Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Status: Pull Request Sent Resolved Resolution: Done Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Git Pull Request: https://github.com/weld/ core api /pull/ 1744 68 , https://github.com/weld/api/pull/ 68 71 , https://github.com/weld/ api core /pull/ 71 1744, https://github.com/weld/core/pull/1751 Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Git Pull Request: https://github.com/weld/core/pull/1744 , https://github.com/weld/api/pull/68, https://github.com/weld/api/pull/71 Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated WELD-2258 Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Status: Pull Request Sent Git Pull Request: https://github.com/weld/core/pull/1744 Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba assigned an issue to Martin Kouba Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Assignee: Martin Kouba Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Fix Version/s: 3.0.2.Final Fix Version/s: 2.4.6.Final Fix Version/s: 3.x Fix Version/s: 2.4.x Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba commented on WELD-2258 Re: Allow to affect the ordering when iterating over javax.enterprise.inject.Instance API proposal (work in progress): https://github.com/weld/api/pull/68 Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Issue was automatically transitioned when Martin Kouba created pull request #68 in GitHub Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Status: Open Pull Request Sent Add Comment This message was sent by Atlassian JIRA (v7.5.0#75005-sha1:fd8c849) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba commented on WELD-2258 Re: Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Maybe we could extend WeldInstance functionality instead. WeldInstance.Handler is currently initialized eagerly, i.e. a bean instance is obtained immediately when a handler instance is created. We could introduce a lazy variant of a handler so that it's possible to sort/filter the handlers before use, e.g. something like: class Bar { @Inject WeldInstance instance; public void process() { instance.lazyHandlers().sort(Bar::compare).findFirst().ifPresent(fooHandler -> fooHandler.get().process()); } static int compare(Handler h1, Handler h2) { // comparison logic... e.g. inspecting bean metadata } }
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Fix Version/s: 2.4.x Fix Version/s: 3.x Fix Version/s: 3.0.0.Beta1 Fix Version/s: 2.4.2.Final Add Comment This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Priority: Major Minor Add Comment This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Right now, it's always necessary to inspect all the bean instances and sort them manually. We could use {{javax.annotation.Priority}} (or any other annotation) to determine the order. See also CDI-535. Add Comment This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba updated an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Change By: Martin Kouba Fix Version/s: 3.0.0.Beta1 Fix Version/s: 2.4.2.Final Add Comment This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (WELD-2258) Allow to affect the ordering when iterating over javax.enterprise.inject.Instance
Title: Message Title Martin Kouba created an issue Weld / WELD-2258 Allow to affect the ordering when iterating over javax.enterprise.inject.Instance Issue Type: Feature Request Assignee: Unassigned Created: 18/Nov/16 8:11 AM Priority: Major Reporter: Martin Kouba See also CDI-535. Add Comment This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)