diff options
Diffstat (limited to 'branches/sca-java-1.3.3/modules/interface-java/src/main')
2 files changed, 17 insertions, 1 deletions
diff --git a/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceContract.java b/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceContract.java index e3a84c63f0..ac747d579d 100644 --- a/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceContract.java +++ b/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceContract.java @@ -19,6 +19,7 @@ package org.apache.tuscany.sca.interfacedef.java; +import org.apache.tuscany.sca.assembly.Extensible; import org.apache.tuscany.sca.interfacedef.InterfaceContract; /** @@ -27,6 +28,6 @@ import org.apache.tuscany.sca.interfacedef.InterfaceContract; * * @version $Rev$ $Date$ */ -public interface JavaInterfaceContract extends InterfaceContract { +public interface JavaInterfaceContract extends InterfaceContract, Extensible { } diff --git a/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceContractImpl.java b/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceContractImpl.java index d43ebe558b..009eaf90c9 100644 --- a/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceContractImpl.java +++ b/branches/sca-java-1.3.3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceContractImpl.java @@ -18,6 +18,10 @@ */ package org.apache.tuscany.sca.interfacedef.java.impl; +import java.util.ArrayList; +import java.util.List; + +import org.apache.tuscany.sca.assembly.Extension; import org.apache.tuscany.sca.interfacedef.impl.InterfaceContractImpl; import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceContract; @@ -27,6 +31,8 @@ import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceContract; * @version $Rev$ $Date$ */ public class JavaInterfaceContractImpl extends InterfaceContractImpl implements JavaInterfaceContract { + private List<Object> extensions = new ArrayList<Object>(); + private List<Extension> attributeExtensions = new ArrayList<Extension>(); protected JavaInterfaceContractImpl() { } @@ -36,4 +42,13 @@ public class JavaInterfaceContractImpl extends InterfaceContractImpl implements return (JavaInterfaceContractImpl) super.clone(); } + public List<Object> getExtensions() { + return extensions; + } + + public List<Extension> getAttributeExtensions() { + return attributeExtensions; + } + + } |