From 0aafa12010ca496809a7fa7e5327d1f90556d399 Mon Sep 17 00:00:00 2001 From: vamsic007 Date: Mon, 13 Apr 2009 09:11:12 +0000 Subject: TUSCANY-2958 JEEImplementationImpl, WebImplementationImpl and EJBImplementationImpl need to implement PolicySetAttachPoint o Make these classes extend ImplementationImpl. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@764380 13f79535-47bb-0310-9956-ffa450edef68 --- .../ejb/impl/EJBImplementationImpl.java | 42 +++------------------- 1 file changed, 5 insertions(+), 37 deletions(-) (limited to 'branches/sca-java-1.x/modules/implementation-ejb') diff --git a/branches/sca-java-1.x/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/impl/EJBImplementationImpl.java b/branches/sca-java-1.x/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/impl/EJBImplementationImpl.java index cf220a8339..8bcff6eb70 100644 --- a/branches/sca-java-1.x/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/impl/EJBImplementationImpl.java +++ b/branches/sca-java-1.x/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/impl/EJBImplementationImpl.java @@ -18,15 +18,13 @@ */ package org.apache.tuscany.sca.implementation.ejb.impl; -import java.util.ArrayList; -import java.util.List; - import org.apache.tuscany.sca.assembly.Component; import org.apache.tuscany.sca.assembly.ConstrainingType; import org.apache.tuscany.sca.assembly.Property; import org.apache.tuscany.sca.assembly.Reference; import org.apache.tuscany.sca.assembly.Service; import org.apache.tuscany.sca.assembly.builder.ComponentPreProcessor; +import org.apache.tuscany.sca.assembly.impl.ImplementationImpl; import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; import org.apache.tuscany.sca.runtime.RuntimeComponent; @@ -36,42 +34,28 @@ import org.apache.tuscany.sca.runtime.RuntimeComponent; * * @version $Rev$ $Date$ */ -class EJBImplementationImpl implements EJBImplementation, ComponentPreProcessor { +class EJBImplementationImpl extends ImplementationImpl implements EJBImplementation, ComponentPreProcessor { - private List properties = new ArrayList(); - private List services = new ArrayList(); - private List references = new ArrayList(); private String ejbLink; - private String uri; - private boolean unresolved; /** * Constructs a new EJB implementation. */ EJBImplementationImpl() { + super(); } + @Override public ConstrainingType getConstrainingType() { // The EJB implementation does not support constrainingTypes return null; } - public List getProperties() { - return properties; - } - - public List getServices() { - return services; - } - - public List getReferences() { - return references; - } - public String getEJBLink() { return ejbLink; } + @Override public void setConstrainingType(ConstrainingType constrainingType) { // The EJB implementation does not support constrainingTypes } @@ -80,22 +64,6 @@ class EJBImplementationImpl implements EJBImplementation, ComponentPreProcessor this.ejbLink = ejbLink; } - public String getURI() { - return uri; - } - - public void setURI(String uri) { - this.uri = uri; - } - - public boolean isUnresolved() { - return unresolved; - } - - public void setUnresolved(boolean unresolved) { - this.unresolved = unresolved; - } - /** * Use preProcess to add any references and properties dynamically */ -- cgit v1.2.3