diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-01 16:45:57 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-01 16:45:57 +0000 |
commit | 959ac6c9a2ce735b02a2f9fb75234326423695ad (patch) | |
tree | 2a5bbfb8d868fc770f00916d5f51b3db514f8ccf /sca-java-2.x/trunk/modules/binding-ws/src/main | |
parent | b69be18919d5d912b5ff3f518c3807a954aad9e9 (diff) |
Add a mechanism for specifying default intents on policy subjects. This is a rewrite of the previous attempt after Greg pointed out a build order issue on the mail list.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1209146 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java b/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java index 21f7b73756..25991c2970 100644 --- a/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java +++ b/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java @@ -45,6 +45,8 @@ import org.apache.tuscany.sca.interfacedef.Interface; import org.apache.tuscany.sca.interfacedef.InterfaceContract; import org.apache.tuscany.sca.interfacedef.wsdl.WSDLDefinition; import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterface; +import org.apache.tuscany.sca.policy.DefaultIntent; +import org.apache.tuscany.sca.policy.DefaultingPolicySubject; import org.apache.tuscany.sca.policy.ExtensionType; import org.apache.tuscany.sca.policy.Intent; import org.apache.tuscany.sca.policy.PolicySet; @@ -56,12 +58,13 @@ import org.w3c.dom.Element; * * @version $Rev$ $Date$ */ -class WebServiceBindingImpl implements WebServiceBinding, PolicySubject, Extensible { +class WebServiceBindingImpl implements WebServiceBinding, DefaultingPolicySubject, Extensible { private String name; private String uri; private boolean unresolved; private List<Object> extensions = new ArrayList<Object>(); private List<Extension> attributeExtensions = new ArrayList<Extension>(); + private List<DefaultIntent> defaultIntents = new ArrayList<DefaultIntent>(); private List<Intent> requiredIntents = new ArrayList<Intent>(); private List<PolicySet> policySets = new ArrayList<PolicySet>(); private ExtensionType extensionType; @@ -454,4 +457,9 @@ class WebServiceBindingImpl implements WebServiceBinding, PolicySubject, Extensi public Map<String, String> getWsdliLocations() { return wsdliLocations; } + + @Override + public List<DefaultIntent> getDefaultIntents() { + return defaultIntents; + } } |