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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/19 11:31:37 UTC

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

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


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 method 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

        

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

Posted by "Gerhard Petracek (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DELTASPIKE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved DELTASPIKE-123.
-----------------------------------------

    Resolution: Won't Fix

http://s.apache.org/AEE
                
> 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: Gerhard Petracek
>             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

        

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

Posted by "Gerhard Petracek (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Gerhard Petracek (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DELTASPIKE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek reopened DELTASPIKE-123:
-----------------------------------------

    
> 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

        

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

Posted by "Gerhard Petracek (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DELTASPIKE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek reassigned DELTASPIKE-123:
-------------------------------------------

    Assignee: Gerhard Petracek  (was: Mark Struberg)
    
> 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: Gerhard Petracek
>             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

        

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

Posted by "Gerhard Petracek (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DELTASPIKE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek updated DELTASPIKE-123:
----------------------------------------

    Attachment: DELTASPIKE-123.patch
    
> 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 method 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

        

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

Posted by "Mark Struberg (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DELTASPIKE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved DELTASPIKE-123.
--------------------------------------

    Resolution: Won't Fix

nope, I deliberately left this out. This did lead to many confusion when we had both ways. There is simply no good name which expresses those options unambiguously.

Currently it's very clear what needs to be done. And there are quite a few cases where you must NOT start the contexts. Especially in SE there is no clear single way how it must be done but really depending on the use case.
                
> 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

        

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

Posted by "Gerhard Petracek (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DELTASPIKE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek updated DELTASPIKE-123:
----------------------------------------

    Description: 
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

  was:
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 method methods - e.g.:
CdiContainer#start
CdiContainer#stop

    
> 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