I'm all for extending Plugins/Receivers etc to match whatever change listeners we choose to implement for v1.3.
-Mark > -----Original Message----- > From: Ceki Gülcü [mailto:[EMAIL PROTECTED] > Sent: Friday, September 05, 2003 6:49 AM > To: Log4J Developers List > Subject: Re: Plugins & PropertyChangeListener > > > > Hello Paul, > > Sending notifications on change is definitely a feature to be > added for > 1.3. Actually, this feature is not only required for plugins > but for most > components (logger repositories, loggers, appenders, layouts). > > We already have change listeners. Let me look at how > PropertyChangeListeners differ and get back to you. > > At 03:41 PM 9/5/2003 +1000, Paul Smith wrote: > >Could we extend Plugins to support the concept of > >PropertyChangeListeners (java.bean package stuff)? > > > >PropertyChangeListener and associated classes are a great > way of binding > >objects together and being notified when certain properties change. > >This allows for a very nicely decoupled design, particular in GUI's. > > > >What I would propose to do is modify PluginSkeleton to add > the following > >methods: > > > >public void addPropertyChangeListener(PropertyChangeListener l); > >public void removePropertyChangeListener(PropertyChangeListener l); > > > >For each setter property in PluginSkeleton and it's > children, modify the > >method to fire a PropertyChangeEvent. Listeners can then modify > >themselves based on the old/new value accordingly. > > > >We can use the PropertyChangeSupport class to do most of the heavy > >lifting. Since Swing uses these classes extensively, they have been > >optimized to ensure that if no-one is listening, as little > CPU/memory as > >possible is wasted. > > > >Does anyone have any objects, or comments? > > > >cheers, > > > >Paul Smith > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > -- > Ceki Gülcü > > For log4j documentation consider "The complete log4j manual" > ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp > > See you in November at ApacheCon US 2003 in Las Vegas. > http://apachecon.com/ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]