Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 149662 - Make is possible to be notified when a connection state has changed
Make is possible to be notified when a connection state has changed
Status: NEW
Product: db
Classification: Unclassified
Component: Code
6.x
All All
: P2 (vote)
: TBD
Assigned To: Libor Fischmeistr
issues@db
:
: 79408 (view as bug list)
Depends on:
Blocks: 152816 146815
  Show dependency treegraph
 
Reported: 2008-10-09 17:29 UTC by David Vancouvering
Modified: 2015-08-04 16:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Vancouvering 2008-10-09 17:29:40 UTC
We need a way for a user of the Database Explorer to add a listener to a connection so they can be notified when the
connection changes state (connected, disconnected).

Right now we have ConnectionListener that lets you know when a connection has been added or removed from the explorer
list. But there is no way to find out about connect/disconnect.

Recommend an API to DatabaseConnection called addChangeListener(ChangeListener l) and
removeChangeListener(ChangeListener l) that is then called when the connection is connected and disconnected.

It would also be good to have a PropertyChangeListener for when properties of the connection change
Comment 1 Rob Englander 2008-10-09 17:36:01 UTC
I'm already adding an event listener mechanism as part of the explorer rewrite.  I think this is
what you're looking for.
Comment 2 Jiri Rechtacek 2009-10-16 14:03:30 UTC
Reassigned to new owner.
Comment 3 matthias42 2015-08-04 16:55:31 UTC
*** Bug 79408 has been marked as a duplicate of this bug. ***


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