diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-12 16:17:13 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-12 16:17:13 +0000 |
commit | 0c3aac18d31640f9000635d377b75aa54c900c0b (patch) | |
tree | 6abd1365ec719e96e8659a68a40b5f5f99e40a2a /sca-java-2.x/trunk/modules/core-spi/src/main | |
parent | 05c2b3b126eb8d9f849f81814639a7d7c6acc6ae (diff) |
Improve the layout of this class to make the sequence of the phases obvious to the reader.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@909479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core-spi/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java | 52 |
1 files changed, 21 insertions, 31 deletions
diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java index af8ad6e582..e8708a3c14 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java @@ -20,50 +20,40 @@ package org.apache.tuscany.sca.invocation; /** - * Tuscany built-in phases for the invocation chain + * Tuscany built-in phases for the invocation chain. The phases are organized + * here such that a message passing from reference component implementation to + * service component implementation passes through the phases from top to bottom * * @version $Rev$ $Date$ */ public interface Phase { - // The first phase for outgoing invocations via a reference - String REFERENCE = "component.reference"; - - // data transformation and validation - String REFERENCE_INTERFACE = "reference.interface"; - - // reference policy handling - String REFERENCE_POLICY = "reference.policy"; - - // reference binding invoker - String REFERENCE_BINDING = "reference.binding"; + + // Reference operation chains + + String REFERENCE = "component.reference"; // The first phase for outgoing invocations via a reference + String REFERENCE_INTERFACE = "reference.interface"; // data transformation and validation + String REFERENCE_POLICY = "reference.policy"; // reference policy handling + String REFERENCE_BINDING = "reference.binding"; // reference binding invoker + + // Reference binding chain String REFERENCE_BINDING_WIREFORMAT = "reference.binding.wireformat"; String REFERENCE_BINDING_POLICY = "reference.binding.policy"; String REFERENCE_BINDING_TRANSPORT = "reference.binding.transport"; + // Service binding chain + String SERVICE_BINDING_TRANSPORT = "service.binding.transport"; String SERVICE_BINDING_OPERATION_SELECTOR = "service.binding.operationselector"; String SERVICE_BINDING_WIREFORMAT = "service.binding.wireformat"; String SERVICE_BINDING_POLICY = "service.binding.policy"; + // Service operation chains - // The first phase for incoming invocations via a service - String SERVICE_BINDING = "service.binding"; - - // service policy handling - String SERVICE_POLICY = "service.policy"; - - // data validation and transformation - String SERVICE_INTERFACE = "service.interface"; - - // TODO: not sure if we need to have this face - String SERVICE = "component.service"; - - // implementation policy handling - String IMPLEMENTATION_POLICY = "implementation.policy"; - - // implementation invoker - String IMPLEMENTATION = "component.implementation"; - - // String getName(); + String SERVICE_BINDING = "service.binding"; // The first phase for incoming invocations via a service + String SERVICE_POLICY = "service.policy"; // service policy handling + String SERVICE_INTERFACE = "service.interface"; // data validation and transformation + String SERVICE = "component.service"; // TODO: not sure if we need to have this phase + String IMPLEMENTATION_POLICY = "implementation.policy"; // implementation policy handling + String IMPLEMENTATION = "component.implementation"; // implementation invoker } |