From 0fb1fd45f479254df6b527908d61720c8d08e083 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 9 Dec 2011 13:34:11 +0000 Subject: TUSCANY-3946 - Had a bit of a change of heart about this one. I'm concerned that putting extra doPrivileged checks in the main message flow is going to have a negative impact on performance so I've swapped out that code so a check on the presence of a message header. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1212406 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/core/invocation/Constants.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'sca-java-2.x/trunk/modules/core') diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/Constants.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/Constants.java index d6f872d00a..d84ef752ac 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/Constants.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/Constants.java @@ -24,8 +24,14 @@ package org.apache.tuscany.sca.core.invocation; * */ public interface Constants { - String MESSAGE_ID = "MESSAGE_ID"; - String RELATES_TO = "RELATES_TO"; - String ASYNC_RESPONSE_INVOKER = "ASYNC_RESPONSE_INVOKER"; - String ASYNC_CALLBACK = "ASYNC_CALLBACK"; + public static final String MESSAGE_ID = "MESSAGE_ID"; + public static final String RELATES_TO = "RELATES_TO"; + public static final String ASYNC_RESPONSE_INVOKER = "ASYNC_RESPONSE_INVOKER"; + public static final String ASYNC_CALLBACK = "ASYNC_CALLBACK"; + + /** + * If you've set the TCCL in your binding impl according to OASIS rules you can prevent + * the implementation provider from repeating the process by including this header + */ + public static final String SUPPRESS_TCCL_SWAP = "SUPPRESS_TCCL_SWAP"; } -- cgit v1.2.3