|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.repository.Configurator<ReturnType> org.jboss.dna.repository.DnaConfiguration.Builder<ReturnType>
public static class DnaConfiguration.Builder<ReturnType>
Nested Class Summary |
---|
Constructor Summary | |
---|---|
DnaConfiguration.Builder(ExecutionContext context,
ReturnType builder)
Specify a new ExecutionContext that should be used for this DNA instance. |
Method Summary | |
---|---|
Configurator.ChooseClass<MimeTypeDetector,Configurator.MimeTypeDetectorDetails<ReturnType>> |
addMimeTypeDetector(String id)
Add a new MIME type detector to this configuration. |
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. |
Configurator.ChooseClass<Sequencer,Configurator.SequencerDetails<ReturnType>> |
addSequencer(String id)
Add a new sequencer to this configuration. |
DnaEngine |
buildDnaEngine()
|
Configurator.ConfigurationRepository |
getConfigurationRepository()
|
Configurator.ChooseClass<RepositorySource,Configurator.ConfigRepositoryDetails<ReturnType>> |
withConfigurationRepository()
Specify that this configuration should use a particular RepositorySource for its configuration repository. |
Methods inherited from class org.jboss.dna.repository.Configurator |
---|
getExecutionContext, save |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DnaConfiguration.Builder(ExecutionContext context, ReturnType builder)
ExecutionContext
that should be used for this DNA instance.
context
- the new context, or null if a default-constructed execution context should be usedbuilder
- the builder object returned from all the methods
IllegalArgumentException
- if the supplied context reference is nullMethod Detail |
---|
public DnaEngine buildDnaEngine()
public Configurator.ConfigurationRepository getConfigurationRepository()
public Configurator.ChooseClass<RepositorySource,Configurator.ConfigRepositoryDetails<ReturnType>> 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<ReturnType>
Configurator.Initializer.withConfigurationRepository()
public Configurator.ChooseClass<Sequencer,Configurator.SequencerDetails<ReturnType>> 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<ReturnType>
id
- the identifier of the new sequencer
Configurator.SequencerConfigurator.addSequencer(java.lang.String)
public Configurator.ChooseClass<RepositorySource,Configurator.RepositoryDetails<ReturnType>> 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<ReturnType>
id
- the id of the new repository that is to be added
Configurator.RepositoryConfigurator.addRepository(java.lang.String)
public ReturnType 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<ReturnType>
source
- the RepositorySource
instance that should be used
Configurator.RepositoryConfigurator.addRepository(org.jboss.dna.graph.connector.RepositorySource)
public Configurator.ChooseClass<MimeTypeDetector,Configurator.MimeTypeDetectorDetails<ReturnType>> 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<ReturnType>
id
- the id of the new detector
Configurator.MimeDetectorConfigurator.addMimeTypeDetector(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |