From b00d62abdd330759cf7222cafd0210e5d70109bd Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 29 Jan 2009 02:43:08 +0000 Subject: TUSCANY-2463 - Merging changes to add extended attribute support for various bindings (ws, ejb, etc), interface java and wsdl, and implementation java git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@738721 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/interfacedef/java/JavaInterfaceContract.java | 3 ++- .../interfacedef/java/impl/JavaInterfaceContractImpl.java | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'branches/sca-java-1.3.3/modules/interface-java/src/main') 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 extensions = new ArrayList(); + private List attributeExtensions = new ArrayList(); protected JavaInterfaceContractImpl() { } @@ -36,4 +42,13 @@ public class JavaInterfaceContractImpl extends InterfaceContractImpl implements return (JavaInterfaceContractImpl) super.clone(); } + public List getExtensions() { + return extensions; + } + + public List getAttributeExtensions() { + return attributeExtensions; + } + + } -- cgit v1.2.3