Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 240675

Re: Type to Scripting object mapping in VCO

$
0
0

Hi,

vCO just calls the one find() method.

However in that find method you can/havve to split the search based on the given type.

So you really end up with a lot of

if(type.equals("TypeA"))

... return PluginRepository.findTypeAById(id)

else if if(type.equals("TypeB"))

return PluginRepository.findTypeBById(id)

else if if(type.equals("TypeC"))

return anyClassDeeperInTheInventory.getById(id)

...

 

Cheers,

Joerg


Viewing all articles
Browse latest Browse all 240675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>