diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-26 18:23:06 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-26 18:23:06 +0000 |
commit | 3566e4b599bcc88382ad81433229b6f2cccdb899 (patch) | |
tree | 067b84f33391c785780b8ab30066651d8bec9e7b /sca-java-2.x/trunk/modules/assembly-xml/src | |
parent | b4f0e720cda98d4bdaa351f4509d6486537a60f6 (diff) |
Clean up the remote flag for endpoint and change the endpoint reference status to an enum
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@916778 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly-xml/src')
-rw-r--r-- | sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java index ea742ae404..eda90c9d44 100644 --- a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java +++ b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java @@ -99,12 +99,12 @@ public class EndpointReferenceProcessor extends BaseAssemblyProcessor implements // the endpoint registry will be consulted endpoint.setUnresolved(true); endpoint.setURI(reference.getTargets().get(0).getName()); - endpointReference.setStatus(EndpointReference.WIRED_TARGET_NOT_FOUND); + endpointReference.setStatus(EndpointReference.Status.WIRED_TARGET_NOT_FOUND); endpointReference.setUnresolved(true); } else { endpoint.setUnresolved(false); endpoint.setBinding(reference.getBindings().get(0)); - endpointReference.setStatus(EndpointReference.RESOLVED_BINDING); + endpointReference.setStatus(EndpointReference.Status.RESOLVED_BINDING); endpointReference.setUnresolved(false); } } @@ -130,7 +130,7 @@ public class EndpointReferenceProcessor extends BaseAssemblyProcessor implements Binding binding = (Binding)endpointReference.getBinding().clone(); reference.getBindings().add(binding); //reference.setInterfaceContract(endpointReference.getInterfaceContract()); - if (endpointReference.getStatus() != EndpointReference.RESOLVED_BINDING){ + if (endpointReference.getStatus() != EndpointReference.Status.RESOLVED_BINDING){ ComponentService service = assemblyFactory.createComponentService(); service.setName(endpointReference.getTargetEndpoint().getURI()); reference.getTargets().clear(); |