JThreadKitTM
v1.1.0
(public members only)

com.jthreadkit
Interface ConfigChangeListener


public interface ConfigChangeListener

Used to signal changes in the configuration of an object. This can be used generically in many areas as there is nothing specified about what changed, only that at least one thing in the configuration of an object has just changed. The implementor of this interface must query the object to find out what thing(s) changed. This interface best used in circumstances where the configuration of the object rarely changes.

Here's a typical use on an imaginary class that supports the adding of ConfigChangeListener's:
  
SomeClass obj = //...
obj.addConfigChangeListener(new ConfigChangeListener() {
        public void configChanged() {
            // something about the configuration changed, 
            //  do something quickly...
        }
    });

For a handy tool to help you add support for ConfigChangeListener's to your classes, see ConfigChangeListenerTool.


Method Summary
 void configChanged()
          This method is called every time the configuration of the monitored object changes.
 

Method Detail

configChanged

public void configChanged()
This method is called every time the configuration of the monitored object changes.

JThreadKitTM
v1.1.0
(public members only)

© Copyright 2000-2001 Programix Incorporated. All rights reserved. JThreadKit home