Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.impl
Class ConfigurationIOAdvisor<T extends IOProvider>

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.io.impl.AbstractIOAdvisor<T>
      extended by eu.esdihumboldt.hale.common.core.io.impl.ConfigurationIOAdvisor<T>
Type Parameters:
T - the I/O provider type
All Implemented Interfaces:
IOAdvisor<T>
Direct Known Subclasses:
LoadAlignmentAdvisor, LoadSchemaAdvisor

public class ConfigurationIOAdvisor<T extends IOProvider>
extends AbstractIOAdvisor<T>

I/O advisor based on configuration in an existing IOConfiguration. Subclasses should at least override AbstractIOAdvisor.handleResults(IOProvider).

Author:
Simon Templer

Constructor Summary
ConfigurationIOAdvisor()
          Create an I/O advisor based on I/O configurations that have to be set using setConfiguration(IOConfiguration) before using the advisor.
ConfigurationIOAdvisor(IOConfiguration conf)
          Create an I/O advisor based on the given I/O configuration.
 
Method Summary
 void prepareProvider(T provider)
          Prepare the I/O provider when it is created.
 void setConfiguration(IOConfiguration conf)
          Set the I/O configuration to use for provider configuration.
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.impl.AbstractIOAdvisor
handleResults, updateConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationIOAdvisor

public ConfigurationIOAdvisor()
Create an I/O advisor based on I/O configurations that have to be set using setConfiguration(IOConfiguration) before using the advisor.


ConfigurationIOAdvisor

public ConfigurationIOAdvisor(IOConfiguration conf)
Create an I/O advisor based on the given I/O configuration.

Parameters:
conf - the I/O configuration
Method Detail

setConfiguration

public void setConfiguration(IOConfiguration conf)
Set the I/O configuration to use for provider configuration.

Parameters:
conf - the I/O configuration

prepareProvider

public void prepareProvider(T provider)
Description copied from interface: IOAdvisor
Prepare the I/O provider when it is created. This may be executed even if for the provider no execution takes place.

This for instance allows configuration pages on IOWizards to base on this preparation.

Specified by:
prepareProvider in interface IOAdvisor<T extends IOProvider>
Overrides:
prepareProvider in class AbstractIOAdvisor<T extends IOProvider>
Parameters:
provider - the I/O provider
See Also:
AbstractIOAdvisor.prepareProvider(IOProvider)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d