You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (Created) (JIRA)" <de...@tuscany.apache.org> on 2011/10/12 15:35:11 UTC
[jira] [Created] (TUSCANY-3961) EndpointReferenceBuilder relies on
internal exception throwing
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
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
[jira] [Assigned] (TUSCANY-3961) EndpointReferenceBuilder relies on
internal exception throwing
Posted by "Simon Laws (Assigned) (JIRA)" <de...@tuscany.apache.org>.
[ 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
[jira] [Closed] (TUSCANY-3961) EndpointReferenceBuilder relies on
internal exception throwing
Posted by "Simon Laws (Closed) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws closed TUSCANY-3961.
-------------------------------
Resolution: Fixed
> 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