Package tigase.db.util.importexport

# Class RepositoryHolder

java.lang.Object
tigase.db.util.importexport.RepositoryHolder

public class RepositoryHolder extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RepositoryHolder(DataSourceHelper dataSourceHelper, List<SchemaManager.RepoInfo> allRepoInfos)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<X> X`
  `getDefaultRepository(Class<X> ifc)`
  `<X> X`
  `getRepository(Class<X> ifc, String name)`
  `protected <X> X`
  `prepareRepository(X repo)`
  `<X> void`
  `registerPrepFn(Class<X> ifc, Function<X,X> func)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RepositoryHolder

    public RepositoryHolder(DataSourceHelper dataSourceHelper, List<SchemaManager.RepoInfo> allRepoInfos)

- ## Method Details

  - ### getDefaultRepository

    public <X> X getDefaultRepository(Class<X> ifc) throws RepositoryException, InstantiationException, IllegalAccessException
    Throws:
      `RepositoryException`
      `InstantiationException`
      `IllegalAccessException`

  - ### getRepository

    public <X> X getRepository(Class<X> ifc, String name) throws RepositoryException, InstantiationException, IllegalAccessException
    Throws:
      `RepositoryException`
      `InstantiationException`
      `IllegalAccessException`

  - ### registerPrepFn

    public <X> void registerPrepFn(Class<X> ifc, Function<X,X> func)

  - ### prepareRepository

    protected <X> X prepareRepository(X repo) throws RepositoryException, InstantiationException, IllegalAccessException
    Throws:
      `RepositoryException`
      `InstantiationException`
      `IllegalAccessException`