Andreas L Delmelle wrote:
On Jan 18, 2007, at 00:06, Daniel Noll wrote:
<snip />
I guess if we're not supposed to set fields on the user agent after
the Fop instance is created, the API should prevent it by either (a)
throwing an exception when we try to change it, or (b) not giving
access to the object in the first place.
Not quite. The second one you created, could be used for another Fop
instance.
It is perfectly legal to instantiate a useragent after the Fop instance
is created. Only, don't expect it to have any consequences... Each Fop
instance is linked to a FOUserAgent. The factory doesn't keep track of
all the Fops and FOUserAgents it creates.
The FOUserAgent passed in and the one obtained from fop.getUserAgent()
are the same object, I didn't actually create a new one.
Daniel
--
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://nuix.com/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]