<resourceType>core.softsensor</resourceType>
<attributes>
<attribute>
- <name>version</name>
+ <name>version</name>
<type>string</type>
<value>1.0</value>
</attribute>
</bundle>
<bundle>
<id>oic.bundle.hueJavaSample</id>
- <path>/home/iotivity/development/iotivity-resource-manipulation/service/resource-manipulation/modules/resourceContainer/examples/HueJavaSampleBundle/hue/target/hue-1.0-SNAPSHOT-jar-with-dependencies.jar</path>
+ <path>../../../../../../../../service/resource-manipulation/modules/resourceContainer/examples/HueJavaSampleBundle/hue/target/hue-1.0-SNAPSHOT-jar-with-dependencies.jar </path>
+ <uri>/hueJava</uri>
<activator>org.iotivity.bundle.hue.HueBundleActivator</activator>
<version>1.0.0</version>
<resources>
<resourceInfo>
<name>light</name>
+ <uri>light/1</uri>
<resourceType>oic.light.control</resourceType>
<address>http://192.168.0.2/api/newdeveloper/lights/1</address>
</resourceInfo>
void setJavaBundle(bool javaBundle);
bool getJavaBundle();
+ void setBundleInfo(BundleInfo* bundleInfo);
+
private:
bool m_loaded, m_activated, m_java_bundle;
int m_id;
jobject BundleInfoInternal::getJavaBundleActivatorObject(){
return m_java_activator_object;
}
+
+ void BundleInfoInternal::setBundleInfo(BundleInfo* bundleInfo){
+ m_ID = bundleInfo->getID();
+ m_path = bundleInfo->getPath();
+ m_version = bundleInfo->getPath();
+ }
}
}
std::list< BundleInfo* > ResourceContainerImpl::listBundles()
{
std::list< BundleInfo* > ret;
+ for(std::map<std::string, BundleInfoInternal*>::iterator it = m_bundles.begin(); it != m_bundles.end(); ++it){
+ BundleInfo* bundleInfo = BundleInfo::createBundleInfo();
+ ((BundleInfoInternal*)bundleInfo)->setBundleInfo((BundleInfo*)it->second);
+ ret.push_back(it->second);
+ }
return ret;
}