public final class CollectionReaderFactory extends Object
Modifier and Type | Method and Description |
---|---|
static CollectionReader |
createCollectionReader(Class<? extends CollectionReader> readerClass,
Object... configurationData)
Deprecated.
|
static CollectionReader |
createCollectionReader(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
Object... configurationData)
Deprecated.
|
static CollectionReader |
createCollectionReader(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
String[] prioritizedTypeNames,
Object... configurationData)
|
static CollectionReader |
createCollectionReader(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
Object... configurationData)
|
static CollectionReader |
createCollectionReader(CollectionReaderDescription desc,
Object... configurationData)
Deprecated.
|
static CollectionReader |
createCollectionReader(String descriptorName,
Object... configurationData)
Deprecated.
|
static CollectionReaderDescription |
createCollectionReaderDescriptionFromPath(String descriptorPath,
Object... configurationData)
Deprecated.
|
static CollectionReader |
createCollectionReaderFromPath(String descriptorPath,
Object... configurationData)
Deprecated.
|
static CollectionReaderDescription |
createDescription(Class<? extends CollectionReader> readerClass,
Object... configurationData)
Deprecated.
|
static CollectionReaderDescription |
createDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
Object... configurationData)
Deprecated.
|
static CollectionReaderDescription |
createDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
String[] prioritizedTypeNames,
Object... configurationData)
|
static CollectionReaderDescription |
createDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
FsIndexCollection indexes,
Capability[] capabilities,
ConfigurationParameter[] configurationParameters,
Object[] configurationValues)
|
static CollectionReaderDescription |
createDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
FsIndexCollection indexes,
Capability[] capabilities,
ConfigurationParameter[] configurationParameters,
Object[] configurationValues,
Map<String,ExternalResourceDescription> externalResources)
|
static CollectionReaderDescription |
createDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
FsIndexCollection indexes,
Capability[] capabilities,
Object... configurationData)
|
static CollectionReaderDescription |
createDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
Object... configurationData)
|
static CollectionReader |
createReader(Class<? extends CollectionReader> readerClass,
Object... configurationData)
Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration
parameters.
|
static CollectionReader |
createReader(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
Object... configurationData)
Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration
parameters.
|
static CollectionReader |
createReader(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
String[] prioritizedTypeNames,
Object... configurationData)
|
static CollectionReader |
createReader(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
Object... configurationData) |
static CollectionReader |
createReader(CollectionReaderDescription desc,
Object... configurationData)
This method creates a CollectionReader from a CollectionReaderDescription adding additional
configuration parameter data as desired
|
static CollectionReader |
createReader(String descriptorName,
Object... configurationData)
Get a CollectionReader from the name (Java-style, dotted) of an XML descriptor file, and a set
of configuration parameters.
|
static CollectionReaderDescription |
createReaderDescription(Class<? extends CollectionReader> readerClass,
Object... configurationData)
A simple factory method for creating a CollectionReaderDescription with a given class, type
system description, and configuration data.
|
static CollectionReaderDescription |
createReaderDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
Object... configurationData)
A simple factory method for creating a CollectionReaderDescription with a given class, type
system description, and configuration data
|
static CollectionReaderDescription |
createReaderDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
String[] prioritizedTypeNames,
Object... configurationData) |
static CollectionReaderDescription |
createReaderDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
FsIndexCollection indexes,
Capability[] capabilities,
ConfigurationParameter[] configurationParameters,
Object[] configurationValues) |
static CollectionReaderDescription |
createReaderDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
FsIndexCollection indexes,
Capability[] capabilities,
ConfigurationParameter[] configurationParameters,
Object[] configurationValues,
Map<String,ExternalResourceDescription> externalResources)
The factory method for creating CollectionReaderDescription objects for a given class,
TypeSystemDescription, TypePriorities, capabilities, and configuration data
|
static CollectionReaderDescription |
createReaderDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
FsIndexCollection indexes,
Capability[] capabilities,
Object... configurationData) |
static CollectionReaderDescription |
createReaderDescription(Class<? extends CollectionReader> readerClass,
TypeSystemDescription typeSystem,
TypePriorities typePriorities,
Object... configurationData) |
static CollectionReaderDescription |
createReaderDescriptionFromPath(String descriptorPath,
Object... configurationData)
Create a CollectionReader from an XML descriptor file and a set of configuration parameters.
|
static CollectionReader |
createReaderFromPath(String descriptorPath,
Object... configurationData)
Create a CollectionReader from an XML descriptor file and a set of configuration parameters.
|
public static CollectionReader createReaderFromPath(String descriptorPath, Object... configurationData) throws ResourceInitializationException, InvalidXMLException, IOException
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedInvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be read@Deprecated public static CollectionReader createCollectionReaderFromPath(String descriptorPath, Object... configurationData) throws ResourceInitializationException, InvalidXMLException, IOException
createReaderFromPath(String, Object...)
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedInvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be readpublic static CollectionReaderDescription createReaderDescriptionFromPath(String descriptorPath, Object... configurationData) throws InvalidXMLException, IOException
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.InvalidXMLException
- if the descriptor could not be created or if the component could not be instantiatedIOException
- if the descriptor could not be read@Deprecated public static CollectionReaderDescription createCollectionReaderDescriptionFromPath(String descriptorPath, Object... configurationData) throws InvalidXMLException, IOException
createReaderDescriptionFromPath(String, Object...)
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.InvalidXMLException
- if the descriptor could not be created or if the component could not be instantiatedIOException
- if the descriptor could not be readpublic static CollectionReader createReader(String descriptorName, Object... configurationData) throws IOException, ResourceInitializationException, InvalidXMLException
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedInvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be read@Deprecated public static CollectionReader createCollectionReader(String descriptorName, Object... configurationData) throws IOException, ResourceInitializationException, InvalidXMLException
createReader(String, Object...)
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedInvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be readpublic static CollectionReader createReader(Class<? extends CollectionReader> readerClass, Object... configurationData) throws ResourceInitializationException
TypeSystemDescriptionFactory.createTypeSystemDescription()
.readerClass
- The class of the CollectionReader to be created.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the component could not be initialized@Deprecated public static CollectionReader createCollectionReader(Class<? extends CollectionReader> readerClass, Object... configurationData) throws ResourceInitializationException
createReader(Class, Object...)
TypeSystemDescriptionFactory.createTypeSystemDescription()
.readerClass
- The class of the CollectionReader to be created.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the component could not be initializedpublic static CollectionReader createReader(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the component could not be initialized@Deprecated public static CollectionReader createCollectionReader(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException
createReader(Class, TypeSystemDescription, Object...)
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the component could not be initialized@Deprecated public static CollectionReader createReader(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the component could not be initialized@Deprecated public static CollectionReader createCollectionReader(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.ResourceInitializationException
- if the component could not be initializedpublic static CollectionReader createReader(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the component could not be initialized@Deprecated public static CollectionReader createCollectionReader(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the component could not be initializedpublic static CollectionReader createReader(CollectionReaderDescription desc, Object... configurationData) throws ResourceInitializationException
desc
- a descriptorconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the component could not be initialized@Deprecated public static CollectionReader createCollectionReader(CollectionReaderDescription desc, Object... configurationData) throws ResourceInitializationException
createReader(CollectionReaderDescription, Object...)
desc
- a descriptorconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the component could not be initializedpublic static CollectionReaderDescription createReaderDescription(Class<? extends CollectionReader> readerClass, Object... configurationData) throws ResourceInitializationException
TypeSystemDescriptionFactory.createTypeSystemDescription()
. Type priorities are
detected automatically using TypePrioritiesFactory.createTypePriorities()
. Indexes are
detected automatically using FsIndexFactory.createFsIndexCollection()
.readerClass
- The class of the CollectionReader to be created.configurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set up@Deprecated public static CollectionReaderDescription createDescription(Class<? extends CollectionReader> readerClass, Object... configurationData) throws ResourceInitializationException
createReaderDescription(Class, Object...)
TypeSystemDescriptionFactory.createTypeSystemDescription()
.readerClass
- The class of the CollectionReader to be created.configurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set uppublic static CollectionReaderDescription createReaderDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set up@Deprecated public static CollectionReaderDescription createDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException
createReaderDescription(Class, TypeSystemDescription, Object...)
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set uppublic static CollectionReaderDescription createReaderDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set up@Deprecated public static CollectionReaderDescription createDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set uppublic static CollectionReaderDescription createReaderDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set up@Deprecated public static CollectionReaderDescription createDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set uppublic static CollectionReaderDescription createReaderDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set up@Deprecated public static CollectionReaderDescription createDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) throws ResourceInitializationException
createReaderDescription(Class, TypeSystemDescription, TypePriorities, FsIndexCollection, Capability[], Object...)
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in
the description.ResourceInitializationException
- if the descriptor could not be set uppublic static CollectionReaderDescription createReaderDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parametersResourceInitializationException
- if the descriptor could not be set up@Deprecated public static CollectionReaderDescription createDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws ResourceInitializationException
createReaderDescription(Class, TypeSystemDescription, TypePriorities, FsIndexCollection, Capability[], ConfigurationParameter[], Object[])
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parametersResourceInitializationException
- if the descriptor could not be set uppublic static CollectionReaderDescription createReaderDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String,ExternalResourceDescription> externalResources) throws ResourceInitializationException
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parametersexternalResources
- the external resourcesResourceInitializationException
- if the descriptor could not be set up@Deprecated public static CollectionReaderDescription createDescription(Class<? extends CollectionReader> readerClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String,ExternalResourceDescription> externalResources) throws ResourceInitializationException
createReaderDescription(Class, TypeSystemDescription, TypePriorities, FsIndexCollection, Capability[], ConfigurationParameter[], Object[], Map)
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parametersexternalResources
- the external resourcesResourceInitializationException
- if the descriptor could not be set upCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.