You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (Commented) (JIRA)" <ji...@apache.org> on 2012/03/19 11:55:39 UTC

[jira] [Commented] (DELTASPIKE-123) convenience methods for CdiContainer

    [ https://issues.apache.org/jira/browse/DELTASPIKE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232552#comment-13232552 ] 

Gerhard Petracek commented on DELTASPIKE-123:
---------------------------------------------

i know - but i don't agree.
imo it doesn't make sense to write 4 lines in >several< cases, if you can do the same with 2 lines.
if we can't agree on convenience methods, we have to merge the shutdown logic. right now it's too error prone.

the difference is very simple and it's explained with one line of javadoc.
it needs to be discussed on the list -> please start a discussion thread.
                
> convenience methods for CdiContainer
> ------------------------------------
>
>                 Key: DELTASPIKE-123
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-123
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: CDI-SE
>            Reporter: Gerhard Petracek
>            Assignee: Mark Struberg
>             Fix For: 0.2-incubating
>
>         Attachments: DELTASPIKE-123.patch
>
>
> in most cases users always have to call:
> CdiContainer#boot
> CdiContainer#getContextControl#startContexts
> as well as:
> CdiContainer#getContextControl#stop
> CdiContainer#shutdown
> imo we should think about convenience methods - e.g.:
> CdiContainer#start
> CdiContainer#stop

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira