org.jboss.dna.repository
Interface Configurator.RepositoryConfigurator<ReturnType>

Type Parameters:
ReturnType - the type of interface to return after the repository source's configuration is completed
All Known Implementing Classes:
DnaConfiguration, DnaConfiguration.Builder, JcrConfiguration
Enclosing class:
Configurator<BuilderType>

public static interface Configurator.RepositoryConfigurator<ReturnType>

Interface used to configure a repository source.


Method Summary
 ReturnType addRepository(RepositorySource source)
          Add a new repository for this configuration.
 Configurator.ChooseClass<RepositorySource,Configurator.RepositoryDetails<ReturnType>> addRepository(String id)
          Add a new repository for this configuration.
 

Method Detail

addRepository

Configurator.ChooseClass<RepositorySource,Configurator.RepositoryDetails<ReturnType>> addRepository(String id)
Add a new repository for this configuration. The new repository will have the supplied name, and if the name of an existing repository is used, this will replace the existing repository configuration.

Parameters:
id - the id of the new repository that is to be added
Returns:
the interface for choosing the class, which returns the interface used to configure the repository source; never null
Throws:
IllegalArgumentException - if the repository name is null, empty, or otherwise invalid
See Also:
addRepository(RepositorySource)

addRepository

ReturnType addRepository(RepositorySource source)
Add a new repository for this configuration. The new repository will have the supplied name, and if the name of an existing repository is used, this will replace the existing repository configuration.

Parameters:
source - the RepositorySource instance that should be used
Returns:
this configuration object, for method-chaining purposes
Throws:
IllegalArgumentException - if the repository source reference is null
See Also:
addRepository(String)


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.