Grégory Joseph ha scritto:
Hi Matteo,
Hi Grégory :-)
Assuming JndiDs and WsDs are Collection<JndiDs> and Collection<WS>, I
assume something along the lines of the following should work
class YourModule : public Datasources getDatasources(), public void
setDatasources(Datasources)
class Datasources: public Collection<JndiDs> getJndiDs(), public void
setJndiDss(Collection<JndiDs>), public void addJndiDs(JndiDs)
public Collection<WsDs> getWsDss(), public void
setWsDss(Collection<WsDs>), public void addWS(WsDs)
OK, right! It seems quite logical! I'll have a deep check tomorrow morning..
Two remarks:
* given that your class names use accronyms and end with Ss, the
pluralization might be a bit tricky... you might have to debug into the
content2bean code - let me know if you need a pointer to where the
pluralization occurs, i could check
I will have a look also there, I don't know exactly how pluralization
has been implemented on Content2Bean.
* you need the add() methods because content2bean/commons-beanutils (and
Magnolia in general so far) are not generics-aware.
Yes, this was already be implemented for other automatic configuration
loaders.
Let me know if that helps - I suppose you add seen
http://documentation.magnolia-cms.com/reference/configuration.html#Content2Bean,
feel free to comment or let us know if any additional info or
clarification would help !
Thanks so much for your time!
Cheers,
-g
Cheers!
matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------