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

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

public static interface Configurator.MimeDetectorConfigurator<ReturnType>

Interface used to configure a MIME type detector.


Method Summary
 Configurator.ChooseClass<MimeTypeDetector,Configurator.MimeTypeDetectorDetails<ReturnType>> addMimeTypeDetector(String id)
          Add a new MIME type detector to this configuration.
 

Method Detail

addMimeTypeDetector

Configurator.ChooseClass<MimeTypeDetector,Configurator.MimeTypeDetectorDetails<ReturnType>> addMimeTypeDetector(String id)
Add a new 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.

Parameters:
id - the id of the new detector
Returns:
the interface for choosing the class, which returns the interface used to configure the detector; never null
Throws:
IllegalArgumentException - if the detector name is null, empty, or otherwise invalid


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