diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-22 15:50:20 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-22 15:50:20 +0000 |
commit | 04531b3fe0727ec7168eeff112e000a694b7ee37 (patch) | |
tree | aeabe84eab0158c51bc8a508db43a2b6ff2d66c8 /java/sca/modules | |
parent | 4b25c9ef9b96fc72a0c4bbc3ac3c7797e0ef1c7f (diff) |
Use the methods for retrieving collections as some specializations override these collection methods to calculate the contents.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@817703 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
2 files changed, 6 insertions, 6 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java index 34841196a3..9b4db8a8e0 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java @@ -104,7 +104,7 @@ public class ComponentImpl extends ExtensibleImpl implements Component, Cloneabl public Property getProperty(String name){ Property property = null; - for (Property tmp : properties){ + for (Property tmp : getProperties()){ if (tmp.getName().equals(name)){ property = tmp; break; @@ -121,7 +121,7 @@ public class ComponentImpl extends ExtensibleImpl implements Component, Cloneabl public Reference getReference(String name){ Reference reference = null; - for (Reference tmp : references){ + for (Reference tmp : getReferences()){ if (tmp.getName().equals(name)){ reference = tmp; break; @@ -138,7 +138,7 @@ public class ComponentImpl extends ExtensibleImpl implements Component, Cloneabl public Service getService(String name){ Service service = null; - for (Service tmp : services){ + for (Service tmp : getServices()){ if (tmp.getName().equals(name)){ service = tmp; break; diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java index 07c0b59384..a775ab0eed 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java @@ -90,7 +90,7 @@ public class ComponentTypeImpl extends ExtensibleImpl implements ComponentType, public Property getProperty(String name){ Property property = null; - for (Property tmp : properties){ + for (Property tmp : getProperties()){ if (tmp.getName().equals(name)){ property = tmp; break; @@ -107,7 +107,7 @@ public class ComponentTypeImpl extends ExtensibleImpl implements ComponentType, public Reference getReference(String name){ Reference reference = null; - for (Reference tmp : references){ + for (Reference tmp : getReferences()){ if (tmp.getName().equals(name)){ reference = tmp; break; @@ -124,7 +124,7 @@ public class ComponentTypeImpl extends ExtensibleImpl implements ComponentType, public Service getService(String name){ Service service = null; - for (Service tmp : services){ + for (Service tmp : getServices()){ if (tmp.getName().equals(name)){ service = tmp; break; |