summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix NPE as the autowire is Boolean and the value can be null. The autoboxing ↵rfeng2012-09-101-4/+5
| | | | | | will throw NPE. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1383128 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-4069: Apply patch from Rashmi Hunt to fix Issue with resolving ↵antelder2012-09-071-0/+10
| | | | | | autowired reference when binding is not defined to a target service exposed over multiple bindings git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1381971 13f79535-47bb-0310-9956-ffa450edef68
* Update to support DOMInvoker with remote endpointsantelder2012-08-161-0/+3
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1373866 13f79535-47bb-0310-9956-ffa450edef68
* Avoid NPE for the remote endpoints which don't have interface contracts setrfeng2012-07-311-1/+1
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1367808 13f79535-47bb-0310-9956-ffa450edef68
* Remove duplicated line thats overwriting the binding settingantelder2012-04-031-1/+0
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1308855 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-4033 - Don't generate WSDL when binding an EPR to a remote EP and ↵slaws2012-03-231-2/+14
| | | | | | the EPR and EP both use a Java interface. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1304327 13f79535-47bb-0310-9956-ffa450edef68
* Fix the binding invokers to use endpoint reference's deployed URI (i.e., the ↵rfeng2012-03-221-8/+5
| | | | | | target service endpoint address) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1304128 13f79535-47bb-0310-9956-ffa450edef68
* Revert the change based on the comment from ↵rfeng2012-03-211-0/+10
| | | | | | https://issues.apache.org/jira/browse/TUSCANY-4029 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1303591 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-4029: Clone the binding when setting it on the EndpointReference to ↵antelder2012-03-191-2/+6
| | | | | | ensure its not the same instance as that used by the Endpoint. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1302317 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-4020 - move hardcoded message strings into properties filesslaws2012-02-291-4/+11
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1295144 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-4005 - swap the test around so that the code that raises an error if ↵slaws2012-02-211-15/+23
| | | | | | a reference target containing only a component name matches a component with multiple services comes after the code that matches interfaces and policy git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1291714 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-4005 - raise an error if a reference target containing only a ↵slaws2012-02-021-3/+47
| | | | | | component name matches a component with multiple services. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1239597 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3932 - First part of this JIRA is to remove some inconsistencies in ↵slaws2012-01-061-1/+2
| | | | | | the way that callbacks are handled now. See JIRA for more comments on this first change. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1228150 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in commentslaws2011-11-221-1/+1
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1205012 13f79535-47bb-0310-9956-ffa450edef68
* Add a spec version to Endpoint and only do full matching if the target ↵slaws2011-10-311-1/+30
| | | | | | endpoint is and OASIS endpoint git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1195400 13f79535-47bb-0310-9956-ffa450edef68
* Add code to read <requires> elements from WSDL and enable the test that ↵slaws2011-10-191-3/+2
| | | | | | ensure that mayProvides intents are matched between references and services. This has implications for existing tests in that we now have to ensure that any mayProvides intent that is considered to be the default (a concept that the spec doesn't consider) is present in the intent list for the policy subject in question. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1186027 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3959 - Disable the mayProvides intent temporarily as it's causing ↵slaws2011-10-171-1/+2
| | | | | | POL4031 to fail. Looks like a WSDL processing issue. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1185279 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3959 - Correct interface matching so that it takes account of ↵slaws2011-10-171-9/+30
| | | | | | mayProvides intents. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1185139 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3941 - If a reference specifies target in an SCA binding then we ↵slaws2011-09-121-1/+14
| | | | | | expect there to be an SCA binding at the service. In this case don't just select the first binding in the list. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1169664 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3916 - Turn remote interface match back on with a couple of ↵slaws2011-09-011-0/+14
| | | | | | restrictions. Only the top level WSDL is shared and dependent XSD is not. I've added guards for the case where parameter types cannot be converted to WSDL. If interface information is insufficient to run the match the interfaces are assumed to be compatible and matching is left until runtime. Having struggled with the WSDL based approach I'm going to look at serializing the internal Tuscany model. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1163988 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3932 - Rework the callack wire calculation to be based on ↵slaws2011-08-251-37/+96
| | | | | | non-runtime configurations. I've modified the Endpoint writing algorithm to write out automatically calculated callback bindings as well as callback bindings specified explicitly by the user. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1161527 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3916 - extend WSDL serialization code to deal with imports/includesslaws2011-08-151-14/+1
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1157857 13f79535-47bb-0310-9956-ffa450edef68
* Add some code to try to convert the wsdl string from the remote endpoint ↵antelder2011-07-261-3/+3
| | | | | | back into a WSDLInterfaceContract. This doesn't work properly and throws an InvalidWSDLException with some JDKs. Committing as-is to see if anyone has any ideas why git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1151203 13f79535-47bb-0310-9956-ffa450edef68
* Correct comment as the code does go through that route for $self references ↵slaws2011-07-111-1/+1
| | | | | | created by the in-VM client. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1145108 13f79535-47bb-0310-9956-ffa450edef68
* Update EndpointReferenceBinderImpl to use the domain registry to workout if ↵antelder2011-06-291-3/+2
| | | | | | an EndpointReference is out of date instead of trying to work it out in EndpointReferenceBinderImpl git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1141029 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3873 - A stop gap solution to running the appliesTo algorithm ↵slaws2011-06-231-4/+20
| | | | | | against a matched endpoint reference. Waiting on the discussion from TUSCANY-3877 before producing the full solution. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1138864 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3873 - modify the policy matching algorithm for the case where the ↵slaws2011-06-161-3/+28
| | | | | | reference has a target but no policy and the service has policy. In this case the code now copies the service policy to the reference. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1136386 13f79535-47bb-0310-9956-ffa450edef68
* Rename EndpointRegistry to DomainRegistry. Doing this has been brought up ↵antelder2011-05-161-13/+13
| | | | | | lots of times in the past just no one ever got around to it. It effects quite a few classes but its a relatively trivial rename and i don't think it should impact on anyone too much git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1103629 13f79535-47bb-0310-9956-ffa450edef68
* Bring the unknown endpoint plugin into play at build and run time. slaws2010-12-231-16/+26
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1052258 13f79535-47bb-0310-9956-ffa450edef68
* Update EndpointReferenceBinder with a plug point for an ↵antelder2010-12-081-7/+28
| | | | | | UnknownEndpointHandler thats called when an endpoint isn't found in the registry. Don't know if this is the best approach yet but it gives something to try with itests too see how it works git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1043464 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3801 - only create a service to accept async responses if the ↵slaws2010-12-031-3/+10
| | | | | | binding doesn't support asycn interactions natively git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1041872 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3788, TUSCANY-3786 - Allow build time resolvable references to be ↵slaws2010-11-301-41/+87
| | | | | | resolved then so that async response services can be established at that point. In a reliable situation the response service is then available as soon as reference is resolved and doesn't depend on the reference actually being used. Also start adding interfaces to allow the implementation provider to make an async invocation explicitly. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1040444 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in commentslaws2010-11-081-1/+1
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1032555 13f79535-47bb-0310-9956-ffa450edef68
* Fix the self reference with explicit bindingsrfeng2010-09-101-3/+5
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@995627 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3653 - Read JAXWS annotations in Java interfaces ↵slaws2010-08-181-5/+22
| | | | | | (JAXWSJavaIntefaceProcessor) and, in the JavaIntefaceProcessor, post process these to reconfigure the Java interface based on what is found. The case where WSDL is referenced is tricky and still has holes. The WSDL is read and is attached to the Java interface as a normalized interface and is used during interface matching. Binding implementations that care about WSDL should really check the normalized interface rather than the service interface itself. This is still a TODO. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@986740 13f79535-47bb-0310-9956-ffa450edef68
* improve pd info for interface contract mapping and fix up failing ASM tests ↵kelvingoodson2010-07-271-0/+14
| | | | | | due to previous error message output changes git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@979633 13f79535-47bb-0310-9956-ffa450edef68
* Check constrained types for the qualifiable parent of a qualified intentbdaniel2010-07-261-1/+5
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@979150 13f79535-47bb-0310-9956-ffa450edef68
* Remove constrained intents from endpoint references at runtime binding timebdaniel2010-07-231-3/+37
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@966983 13f79535-47bb-0310-9956-ffa450edef68
* missing file from commit 966324kelvingoodson2010-07-221-11/+10
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@966527 13f79535-47bb-0310-9956-ffa450edef68
* communicate differences in interfaces wrt @Remotable annotationkelvingoodson2010-07-161-1/+1
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@964852 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3616 - Add code to check that that interface contracts a reference ↵slaws2010-07-131-1/+11
| | | | | | and reference binding and at service and service binding match. Motivated by BWS_2007. TO do this properly we have to test that the interfaces are described using the same IDL and if not convert to WSDL1.1 are required by the SCA specifications. There are a lot of changes here as doing this upset quite a few tests. Further work is required to look at the details of our WSDL generation process which looks a little suspect around wrapper namespaces. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@963624 13f79535-47bb-0310-9956-ffa450edef68
* Add a flag to the binding builder to indicate that generated data should be ↵slaws2010-06-171-2/+4
| | | | | | regenerated. Also rename the methods for getting/setting the generated data to make it more obvious that that's what it's doing. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@955601 13f79535-47bb-0310-9956-ffa450edef68
* improve variable nameslaws2010-06-171-14/+14
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@955562 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3593 - Create an endpoint on the fly at the point a reference target ↵slaws2010-06-171-17/+84
| | | | | | is resolved in order to handle callbacks. This investigation has raised some questions that OASIS needs to answer, e.g. how to handle policy in this late bound scenario. Also this code change turns off generated WSDL caching and also relies on the SCA binding being attached to the callback service to carry the binding URI but this causes problems if you explicitly specify binding.sca. So more work to do but the basic test passes now. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@955544 13f79535-47bb-0310-9956-ffa450edef68
* Make sure callback endpoints are createdrfeng2010-05-171-4/+3
| | | | | | When a component is invoked from a non bidirectional interface, inject null to the fields/setters with @Callback git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@945259 13f79535-47bb-0310-9956-ffa450edef68
* correct commentslaws2010-04-081-3/+3
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@931906 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3529 - update binding matching to turn on code that looks at binding ↵slaws2010-04-081-12/+21
| | | | | | type provided intents git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@931904 13f79535-47bb-0310-9956-ffa450edef68
* TUSCANY-3483 - ensure that policies defined in the implementation are ↵slaws2010-03-111-2/+15
| | | | | | applied correctly to the component service. This pointed out another problem in that if binding.sca was defined on the reference with no uri but with intents then the intents weren't being applied to the EPR because the binding was being ignored (as it's a targeted reference). git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@921903 13f79535-47bb-0310-9956-ffa450edef68
* Switch binder interface over to throwing exceptions rather than returning ↵slaws2010-03-081-10/+12
| | | | | | booleans. Allows the full details of a missmatch to be retrieved in the runtime case as well as the build time case. Update the matching test case to take advantage of the extra information. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@920287 13f79535-47bb-0310-9956-ffa450edef68
* Correct audit statement in failure caseslaws2010-03-081-1/+1
| | | | git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@920260 13f79535-47bb-0310-9956-ffa450edef68