[
https://issues.apache.org/jira/browse/TUSCANY-1856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Combellack updated TUSCANY-1856:
-------------------------------------
Attachment: ConversationIDExtensionPoint.patch
The attached patch contains:
ConversationIDFactoryExtensionPoint
- Interface for the Conversation ID Extension Point
DefaultConversationIDFactoryExtensionPoint
- Default implementation of the ConversationIDFactoryExtensionPoint that uses
UUID.randomUUID().toString() to create the Conversation ID
DefaultConversationIDFactoryExtensionPointTestCase
- Simple test case for DefaultConversationIDFactoryExtensionPoint
The rest of the file modifications are to update the rest of the Tuscany code
to use the new Extension Point.
> Add Create Conversation ID Factory Extension Point so code for creating
> Conversation IDs is not duplicated throughout code base
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-1856
> URL: https://issues.apache.org/jira/browse/TUSCANY-1856
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-1.0
> Environment: SVN Revision 585955
> Linux
> Reporter: Mark Combellack
> Fix For: Java-SCA-Next
>
> Attachments: ConversationIDExtensionPoint.patch
>
>
> Currently in Tuscany, we use UUID to create Conversation IDs in various
> points of the code in various modules. For examples of this, see [1].
> The code is all basically the same:
> UUID.randomUUID().toString();
> The above common code should be extracted out into an Conversation ID
> Extension Point so it can be shared throughout the code base.
> As an added benefit, this change will allow different implementations of the
> Extension Point to be plugged in. For example, when Tuscany is extended to
> become a distributed runtime, it may be desirable to add the host name to the
> Conversation ID. This can be achieved by adding a different implementation of
> this Extension Point
> [1] See any of the following:
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java?view=markup
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/JDKInvocationHandler.java?view=markup
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeWireInvoker.java?view=markup
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ConversationalScopeContainer.java?view=markup
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/ConversationManagerImpl.java?view=markup
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerID.java?view=markup
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]