pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edvin Syse <ed...@sysedata.no>
Subject Re: Examples still using namespace.get() instead of @BXML
Date Mon, 06 Jun 2011 17:31:35 GMT
Think maybe I understand now.. it's because you want to set the stuff 
extracted from bxml into private or package private members? Like:

@BXML Object myObject;

instead of

@BXML public Object myObject;


-- Edvin

Den 06.06.2011 19:30, skrev Edvin Syse:
> Den 06.06.2011 19:23, skrev Greg Brown:
>>> What's the technical reason why @BXML only works for trusted code?
>> It uses AccessibleObject#setAccessible() to set private member
>> variables, and this method can only be called by trusted code.
> OK. I'm trying to understand a bit more about how things work in Pivot,
> so if you'd bear with me: Can you give me some examples of private
> member variables that are set using bxml? I can't seem to think of a
> case where you should be able to configure something with bxml but not
> do the same programatically :) I know you probably have good reasons for
> this, just want to understand.
> -- Edvin

View raw message