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/02/15 14:55:03 UTC

[jira] [Created] (DELTASPIKE-88) discuss Editable* spi approach

discuss Editable* spi approach
------------------------------

                 Key: DELTASPIKE-88
                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-88
             Project: DeltaSpike
          Issue Type: Task
            Reporter: Gerhard Petracek
            Assignee: Gerhard Petracek


this approach allows to keep the api simple and methods which are important to customize the behaviour but aren't intended to be used frequently (in most cases "write-methods") are placed in the corresponding Editable* spi.
in this case the spi extends the api which allows to just change the type of the injection-point to get access to the full functionality.

see e.g.:
https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/scope/conversation/Conversation.java
and
https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/scope/conversation/spi/EditableConversation.java

--
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-88) discuss Editable* spi approach

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

Gerhard Petracek updated DELTASPIKE-88:
---------------------------------------

    Description: 
this approach allows to keep the api simple and methods which are important to customize the behaviour but aren't intended to be used frequently (in most cases "write-methods") are placed in the corresponding Editable* spi.
in this case the spi extends the api which allows to just change the type of the injection-point to get access to the full functionality.

see e.g.:
https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/scope/conversation/Conversation.java
and
https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/scope/conversation/spi/EditableConversation.java

there is just one producer internally (so users could even cast the injection point which uses the api type - if they prefer it)

  was:
this approach allows to keep the api simple and methods which are important to customize the behaviour but aren't intended to be used frequently (in most cases "write-methods") are placed in the corresponding Editable* spi.
in this case the spi extends the api which allows to just change the type of the injection-point to get access to the full functionality.

see e.g.:
https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/scope/conversation/Conversation.java
and
https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/scope/conversation/spi/EditableConversation.java

    
> discuss Editable* spi approach
> ------------------------------
>
>                 Key: DELTASPIKE-88
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-88
>             Project: DeltaSpike
>          Issue Type: Task
>            Reporter: Gerhard Petracek
>            Assignee: Gerhard Petracek
>
> this approach allows to keep the api simple and methods which are important to customize the behaviour but aren't intended to be used frequently (in most cases "write-methods") are placed in the corresponding Editable* spi.
> in this case the spi extends the api which allows to just change the type of the injection-point to get access to the full functionality.
> see e.g.:
> https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/scope/conversation/Conversation.java
> and
> https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/scope/conversation/spi/EditableConversation.java
> there is just one producer internally (so users could even cast the injection point which uses the api type - if they prefer it)

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