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

Re: Finder properties having array as return type

$
0
0

Hi Sergio,

 

The property type is native array only (String[], byte[], short[] etc) not collections.

Ok I will give it a try as well, but in that case I will have to change my original java classes (which I do not want).

 

By the way, I was trying something else in this direction. I had seen vso.xml of vsphere plugin, and there we are able to call property of porperty if property is an object as shown below.

<property display-name="SDK Connection" name="vimHost" property-accessor="vimHost.name">

<property display-name="capacity (GB)" name="capacity" property-accessor="summary.capacity/(1073741824)">

 

So what I am trying is, I have made a function getArrayToString(Object arr) in the base java class (this function sniffs the 'arr' array type and call the corresponding StringUtils.joinArray function.)

 

Then I define my property as:-

<property property-accessor="arrayToString/(testProp)" display-name="Test Property" hidden="false" name="testProp" show-in-column="true" show-in-description="true"/>

 

But unfortunately this method also failed with error:- unable to invoke 'arrayToString/(testProp)''

 

Do you have any suggestions in this direction?

 

Best Regards,

Sumit Tyagi


Viewing all articles
Browse latest Browse all 230200

Trending Articles



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