[ https://issues.apache.org/jira/browse/TUSCANY-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws reassigned TUSCANY-3961: ----------------------------------- Assignee: Simon Laws > EndpointReferenceBuilder relies on internal exception throwing > -------------------------------------------------------------- > > Key: TUSCANY-3961 > URL: https://issues.apache.org/jira/browse/TUSCANY-3961 > Project: Tuscany > Issue Type: Improvement > Components: SCA Java Runtime > Affects Versions: Java-SCA-2.0-Beta3 > Environment: All > Reporter: Simon Laws > Assignee: Simon Laws > Fix For: Java-SCA-2.0 > > > The EndpointReferenceBuilderImpl uses this code when it's trying to decide if > a target is a domain target or not. > try { > getSCATargetParts(uri); > > // the target uri might be an SCA target so create an > endpoint > // so that the binder can test it against the fully > populated > // registry > endpoint = createEndpoint(component, uri); > if (binding instanceof SCABinding) { > // TUSCANY-3941 > // if it's an SCA binding we store it to > influence the matching at runtime > endpointRef.setBinding(binding); > } > > endpointRef.setStatus(EndpointReference.Status.WIRED_TARGET_IN_BINDING_URI); > } catch (Exception ex) { > // the target string definitely isn't an SCA target > string > // so we can assume here that the user has configured > a > // resolved binding > endpoint = createEndpoint(false); > endpoint.setURI(uri); > endpoint.setBinding(binding); > > endpointRef.setStatus(EndpointReference.Status.RESOLVED_BINDING); > } > Seems a bit missleading and I want change so we don't rely on internal > exception throwing. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira