diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-24 21:41:17 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-24 21:41:17 +0000 |
commit | 4abe8b6a78e80783baa3b87aa87da49d1d338567 (patch) | |
tree | 24e280dff749c2006a0b2eaf3dc3523fd242ce72 /sca-java-2.x/trunk/modules/binding-rss/src/main | |
parent | fd6518e7e98dbb5964e39958c578b3013476af5d (diff) |
Porting Binding.RSS for 2.x runtime SPIs
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@927191 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
3 files changed, 29 insertions, 32 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBinding.java b/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBinding.java index 2b4989264c..bda3210e73 100644 --- a/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBinding.java +++ b/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBinding.java @@ -19,10 +19,15 @@ package org.apache.tuscany.sca.binding.rss; +import javax.xml.namespace.QName; + import org.apache.tuscany.sca.assembly.Binding; /** * RSS Feed binding model. + * + * @version $Rev$ $Date$ */ public interface RSSBinding extends Binding { + QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.rss"); } diff --git a/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingImpl.java b/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingImpl.java index 6158752e7c..00abffafb5 100644 --- a/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingImpl.java +++ b/sca-java-2.x/trunk/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingImpl.java @@ -19,43 +19,38 @@ package org.apache.tuscany.sca.binding.rss.impl; -import java.util.ArrayList; -import java.util.List; +import javax.xml.namespace.QName; +import org.apache.tuscany.sca.assembly.OperationSelector; +import org.apache.tuscany.sca.assembly.WireFormat; import org.apache.tuscany.sca.binding.rss.RSSBinding; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.IntentAttachPointType; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.PolicySetAttachPoint; /** * Implementation of the RSS Feed binding model. + * + * @version $Rev$ $Date$ */ -class RSSBindingImpl implements RSSBinding, PolicySetAttachPoint { +class RSSBindingImpl implements RSSBinding { private String name; private String uri; - private List<Intent> requiredIntents = new ArrayList<Intent>(); - private List<PolicySet> policySets = new ArrayList<PolicySet>(); - private IntentAttachPointType intentAttachPointType; - private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>(); - public List<PolicySet> getApplicablePolicySets() { - return applicablePolicySets; + public QName getType() { + return RSSBinding.TYPE; } public String getName() { return name; } - public String getURI() { - return uri; - } - public void setName(String name) { this.name = name; } + public String getURI() { + return uri; + } + public void setURI(String uri) { this.uri = uri; } @@ -68,28 +63,25 @@ class RSSBindingImpl implements RSSBinding, PolicySetAttachPoint { // The binding is always resolved } - public List<PolicySet> getPolicySets() { - return policySets; + public WireFormat getRequestWireFormat() { + return null; } - public List<Intent> getRequiredIntents() { - return requiredIntents; + public void setRequestWireFormat(WireFormat wireFormat) { } - - public IntentAttachPointType getType() { - return intentAttachPointType; + + public WireFormat getResponseWireFormat() { + return null; } - public void setType(IntentAttachPointType intentAttachPointType) { - this.intentAttachPointType = intentAttachPointType; + public void setResponseWireFormat(WireFormat wireFormat) { } - public void setPolicySets(List<PolicySet> policySets) { - this.policySets = policySets; + public OperationSelector getOperationSelector() { + return null; } - - public void setRequiredIntents(List<Intent> intents) { - this.requiredIntents = intents; + + public void setOperationSelector(OperationSelector operationSelector) { } @Override diff --git a/sca-java-2.x/trunk/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/sca-java-2.x/trunk/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor index 2d0597ff01..d298c16673 100644 --- a/sca-java-2.x/trunk/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor +++ b/sca-java-2.x/trunk/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor @@ -16,4 +16,4 @@ # under the License. # Implementation class for the artifact processor extension -org.apache.tuscany.sca.assembly.xml.DefaultBeanModelProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.0#binding.rss,model=org.apache.tuscany.sca.binding.rss.RSSBinding,factory=org.apache.tuscany.sca.binding.rss.RSSBindingFactory +org.apache.tuscany.sca.assembly.xml.DefaultBeanModelProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.1#binding.rss,model=org.apache.tuscany.sca.binding.rss.RSSBinding,factory=org.apache.tuscany.sca.binding.rss.RSSBindingFactory |