verinec.adaptation.repository
Class TranslationRepFactory
java.lang.Object
verinec.adaptation.repository.TranslationRepFactory
public class TranslationRepFactory
- extends Object
Create repositories for XSL translations.
This class creates a repository by reading the System Property verinec.adaptation.repository.implementation
to find the fully qualified class name of the desired implementation for the repository.
If this is not set, it creates a XSLFileRepository (see there for
information on how to configure this repository implementation).
- Version:
- $Revision:367 $
- Author:
- david.buchmann at unifr.ch
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslationRepFactory
public TranslationRepFactory()
createRepository
public static ITranslationRepository createRepository()
throws VerinecException
- Instantiate a repository for the XSL files.
The repository implementation is choosen by looking at the system property
verinec.adaptation.repository.implementation to find the fully
qualified class name of the desired implementation for the repository.
If this property is not set, a XSLFileRepository is created.
For an implementation of ITranslationRepository to work with
this factory, it must have a no-arg constructor.
- Returns:
- An instance of ITranslationRepository
- Throws:
VerinecException - if the repository can not be instantiated.