org.metastatic.rsync
Interface ParameterListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
RsyncdConf

public interface ParameterListener
extends EventListener

A listener for parsing Samba-style config files. There are two events that occur during parsing: starting named sections and setting parameters.


Method Summary
 void beginSection(String sectionName)
          Begin a named section.
 void setParameter(String name, String value)
          Set a parameter.
 

Method Detail

beginSection

public void beginSection(String sectionName)
Begin a named section. This method will be called on every new section definition.

Parameters:
sectionName - The new section's name.

setParameter

public void setParameter(String name,
                         String value)
Set a parameter. This method may be called prior to the first call to beginSection(java.lang.String), if there are global options. If this method is called after a call to beginSection(java.lang.String), this parameter belongs to that section.

Parameters:
name - The parameter's name.
value - The parameter's value.