verinec.adaptation
Interface IDistributorFactory

All Known Implementing Classes:
PropDistFactory

public interface IDistributorFactory

Creates distributors for given targets.

Version:
$Revision: 824 $
Author:
david.buchmann at unifr.ch
See Also:
Custom Translators Howto

Method Summary
 IDistributor createDistributor(Element target)
          Create a distributor suitable for the given target.
 

Method Detail

createDistributor

IDistributor createDistributor(Element target)
                               throws VerinecException
Create a distributor suitable for the given target. The tr:target element must contain the distributor specific child. This factory method is responsible for calling setTarget on the IDistributor instance.

Parameters:
target - The tr:target element of the service configuration to be distributed.
Returns:
A distributor to be used with the configuration data having this target.
Throws:
VerinecException - if there can be no distributor found for the target.

Copyright © 2005 Verinec, DIUF