Make the comet binding a policy subject. Helping get Florian unstuck.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124749 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d3c3c29329
commit
cc86b2bb74
2 changed files with 33 additions and 2 deletions
sca-java-2.x/trunk/unreleased/modules/binding-comet
|
@ -11,7 +11,8 @@ Bundle-Description: Apache Tuscany SCA Comet Binding Model
|
|||
Import-Package: javax.xml.namespace,
|
||||
org.apache.tuscany.sca.assembly;version="2.0.0",
|
||||
org.apache.tuscany.sca.assembly.xml;version="2.0.0",
|
||||
org.apache.tuscany.sca.binding.comet;version="2.0.0"
|
||||
org.apache.tuscany.sca.binding.comet;version="2.0.0",
|
||||
org.apache.tuscany.sca.policy;version="2.0.0"
|
||||
Bundle-SymbolicName: org.apache.tuscany.sca.binding.comet
|
||||
Bundle-DocURL: http://www.apache.org/
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6
|
||||
|
|
|
@ -18,19 +18,30 @@
|
|||
*/
|
||||
package org.apache.tuscany.sca.binding.comet.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.comet.CometBinding;
|
||||
import org.apache.tuscany.sca.policy.ExtensionType;
|
||||
import org.apache.tuscany.sca.policy.Intent;
|
||||
import org.apache.tuscany.sca.policy.PolicySet;
|
||||
import org.apache.tuscany.sca.policy.PolicySubject;
|
||||
|
||||
/**
|
||||
* Represents a binding through Comet to a service.
|
||||
*/
|
||||
public class CometBindingImpl implements CometBinding {
|
||||
public class CometBindingImpl implements CometBinding, PolicySubject {
|
||||
|
||||
private String name;
|
||||
private String uri;
|
||||
|
||||
private List<Intent> requiredIntents = new ArrayList<Intent>();
|
||||
private List<PolicySet> policySets = new ArrayList<PolicySet>();
|
||||
private ExtensionType extensionType;
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
|
@ -98,4 +109,23 @@ public class CometBindingImpl implements CometBinding {
|
|||
public void setOperationSelector(final OperationSelector operationSelector) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExtensionType getExtensionType() {
|
||||
return extensionType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExtensionType(ExtensionType intentAttachPointType) {
|
||||
this.extensionType = intentAttachPointType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PolicySet> getPolicySets() {
|
||||
return policySets;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Intent> getRequiredIntents() {
|
||||
return requiredIntents;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue