|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.repository.DnaConfiguration
public class DnaConfiguration
Nested Class Summary | |
---|---|
static class |
DnaConfiguration.Builder<ReturnType>
|
Constructor Summary | |
---|---|
DnaConfiguration()
Create a new configuration for DNA. |
|
DnaConfiguration(ExecutionContext context)
Specify a new ExecutionContext that should be used for this DNA instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DnaConfiguration()
public DnaConfiguration(ExecutionContext context)
ExecutionContext
that should be used for this DNA instance.
context
- the new context, or null if a default-constructed execution context should be used
IllegalArgumentException
- if the supplied context reference is nullMethod Detail |
---|
public final ExecutionContext getExecutionContext()
public Configurator.ChooseClass<RepositorySource,Configurator.ConfigRepositoryDetails<DnaConfiguration>> withConfigurationRepository()
RepositorySource
for its configuration repository. By
default each configuration uses an internal transient repository for its configuration, but using this method will make
the configuration use a different repository (that is perhaps shared with other processes).
withConfigurationRepository
in interface Configurator.Initializer<DnaConfiguration>
Configurator.Initializer.withConfigurationRepository()
public Configurator.ChooseClass<RepositorySource,Configurator.RepositoryDetails<DnaConfiguration>> addRepository(String id)
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.
addRepository
in interface Configurator.RepositoryConfigurator<DnaConfiguration>
id
- the id of the new repository that is to be added
Configurator.RepositoryConfigurator.addRepository(java.lang.String)
public DnaConfiguration addRepository(RepositorySource source)
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.
addRepository
in interface Configurator.RepositoryConfigurator<DnaConfiguration>
source
- the RepositorySource
instance that should be used
Configurator.RepositoryConfigurator.addRepository(org.jboss.dna.graph.connector.RepositorySource)
public Configurator.ChooseClass<Sequencer,Configurator.SequencerDetails<DnaConfiguration>> addSequencer(String id)
sequencer
to this configuration. The new sequencer will have the supplied name, and if the
name of an existing sequencer is used, this will replace the existing sequencer configuration.
addSequencer
in interface Configurator.SequencerConfigurator<DnaConfiguration>
id
- the identifier of the new sequencer
Configurator.SequencerConfigurator.addSequencer(java.lang.String)
public Configurator.ChooseClass<MimeTypeDetector,Configurator.MimeTypeDetectorDetails<DnaConfiguration>> addMimeTypeDetector(String id)
MIME type detector
to this configuration. The new detector will have the supplied
name, and if the name of an existing detector is used, this will replace the existing detector configuration.
addMimeTypeDetector
in interface Configurator.MimeDetectorConfigurator<DnaConfiguration>
id
- the id of the new detector
Configurator.MimeDetectorConfigurator.addMimeTypeDetector(java.lang.String)
public DnaConfiguration save()
public DnaEngine build() throws DnaConfigurationException
build
in interface Configurator.Builder<DnaEngine>
DnaConfigurationException
- if the engine cannot be created from this configuration.Configurator.Builder.build()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |