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 (JIRA)" <ji...@apache.org> on 2013/01/12 00:16:12 UTC
[jira] [Resolved] (DELTASPIKE-88) discuss Editable* spi approach
[ https://issues.apache.org/jira/browse/DELTASPIKE-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved DELTASPIKE-88.
----------------------------------------
Resolution: Fixed
Fix Version/s: 0.4-incubating
> 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
> Fix For: 0.4-incubating
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira