Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 26671 - Convertors should have "update" method to reread state of an object
Convertors should have "update" method to reread state of an object
Product: platform
Classification: Unclassified
Component: -- Other --
PC Linux
: P2 (vote)
Assigned To: issues@platform
Depends on:
  Show dependency treegraph
Reported: 2002-08-21 08:55 UTC by Jaroslav Tulach
Modified: 2016-05-25 05:59 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2002-08-21 08:55:04 UTC
Right now, if a .settings file is changed, the
object produced by its IDO is recreated. There is
probably no other way for objects that are, but for those that are or have their own convertor
we should offer a way to just update the state of
the old instance and don't recreate new one.

Usecase for accessing options: A module wants to
access its settings:
setting = (MySetting1)new
javax.naming.InitialContext ().lookup
setting.addPropertyChangeListener (...);

This seems like the easiest way to be notified
about changes of settings, but it requires the
"settings" object to be updated if content of
.settings file changes.

Let's add a method like "Object update (Object
previous, Reader r)" to convertors that by default
calls read (r), but could be overriden to do keep
and update the old instance.
Comment 1 Antonin Nebuzelsky 2008-04-15 17:15:57 UTC
Reassigning to new module owner jskrivanek.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo