Updated Branches: refs/heads/master fa7d5acb0 -> d1ddd6eb7
setting properties of partitions in pojo converter Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/fe3de0cb Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/fe3de0cb Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/fe3de0cb Branch: refs/heads/master Commit: fe3de0cbe522db8d3469c683e89d0d7615538843 Parents: fa7d5ac Author: Nirmal Fernando <[email protected]> Authored: Sat Dec 14 15:08:53 2013 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Sat Dec 14 15:08:53 2013 +0530 ---------------------------------------------------------------------- .../rest/endpoint/bean/util/converter/PojoConverter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fe3de0cb/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/bean/util/converter/PojoConverter.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/bean/util/converter/PojoConverter.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/bean/util/converter/PojoConverter.java index 8171299..d6085fb 100644 --- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/bean/util/converter/PojoConverter.java +++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/bean/util/converter/PojoConverter.java @@ -314,11 +314,11 @@ public class PojoConverter { partitionBeans.provider = partition.getProvider(); partitionBeans.partitionMin = partition.getPartitionMin(); partitionBeans.partitionMax = partition.getPartitionMax(); - //properties are not added currently, TODO if required - //if(partition[i].getProperties() != null) { - // List<PropertyBean> propertyBeans = getPropertyBeans(partition[i].getProperties()); - // partition.property = propertyBeans; - //} + //properties + if(partition.getProperties() != null) { + List<PropertyBean> propertyBeans = getPropertyBeans(partition.getProperties()); + partitionBeans.property = propertyBeans; + } return partitionBeans; }
