net.sf.jame.core.extension
Class ConfigurableExtensionRuntime<T extends ExtensionConfig>

java.lang.Object
  extended by net.sf.jame.core.config.RuntimeElement
      extended by net.sf.jame.core.extension.ExtensionRuntime
          extended by net.sf.jame.core.extension.ConfigurableExtensionRuntime<T>
All Implemented Interfaces:
java.util.EventListener, ValueChangeListener
Direct Known Subclasses:
ColorRendererExtensionRuntime, EffectExtensionRuntime, EncoderExtensionRuntime, FrameFilterExtensionRuntime, ImageExtensionRuntime, IncolouringFormulaExtensionRuntime, LayerFilterExtensionRuntime, OrbitTrapExtensionRuntime, OutcolouringFormulaExtensionRuntime, PaletteRendererExtensionRuntime, RenderingFormulaExtensionRuntime, SpoolExtensionRuntime, TransformingFormulaExtensionRuntime

public abstract class ConfigurableExtensionRuntime<T extends ExtensionConfig>
extends ExtensionRuntime
implements ValueChangeListener

Interface of extension runtimes.

Author:
Andrea Medeghini

Constructor Summary
ConfigurableExtensionRuntime()
           
 
Method Summary
 void configReloaded()
          Called when config is changed.
 void dispose()
          Disposes the element resources.
 T getConfig()
          Returns the config.
 void setConfig(T config)
          Sets the config.
 void valueChanged(ValueChangeEvent e)
          Called to process a new event.
 
Methods inherited from class net.sf.jame.core.config.RuntimeElement
changeCount, finalize, fireChanged, isChanged
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableExtensionRuntime

public ConfigurableExtensionRuntime()
Method Detail

dispose

public void dispose()
Description copied from class: RuntimeElement
Disposes the element resources. The default implementation does nothing.

Overrides:
dispose in class RuntimeElement
See Also:
RuntimeElement.dispose()

setConfig

public final void setConfig(T config)
Sets the config.

Parameters:
config - the config to set.

getConfig

public final T getConfig()
Returns the config.

Returns:
the config.

configReloaded

public void configReloaded()
Called when config is changed.


valueChanged

public void valueChanged(ValueChangeEvent e)
Description copied from interface: ValueChangeListener
Called to process a new event.

Specified by:
valueChanged in interface ValueChangeListener
Parameters:
e - the event to process.
See Also:
ValueChangeListener.valueChanged(net.sf.jame.core.config.ValueChangeEvent)