public class ExtractionDefinitionReader extends AbstractLogEnabled implements Component, Contextualizable, Serviceable
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private ServiceManager |
_serviceManager |
static String |
ROLE
The component role.
|
Constructor and Description |
---|
ExtractionDefinitionReader() |
Modifier and Type | Method and Description |
---|---|
private ExtractionComponent |
_processExtractionComponent(Configuration componentConfiguration) |
private void |
_readExtractionDefinitionFile(Configuration configuration,
Extraction extraction) |
private void |
_readVariablesDefinition(Configuration configuration,
Extraction extraction) |
void |
contextualize(Context context) |
private List<String> |
getDisplayOptionalColumnNames(Configuration configuration) |
private Map<String,String> |
getQueryVariablesNamesAndContentTypes(Configuration configuration) |
Extraction |
readExtractionDefinitionFile(File file)
Read the extraction definition file
|
Extraction |
readVariablesDefinitionsInExtractionDefinitionFile(File file)
Read the extraction definition file
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private ServiceManager _serviceManager
public ExtractionDefinitionReader()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Extraction readExtractionDefinitionFile(File file) throws Exception
file
- extraction definition fileException
- if an error occurspublic Extraction readVariablesDefinitionsInExtractionDefinitionFile(File file) throws Exception
file
- extraction definition fileException
- if an error occursprivate void _readVariablesDefinition(Configuration configuration, Extraction extraction) throws ConfigurationException
ConfigurationException
private void _readExtractionDefinitionFile(Configuration configuration, Extraction extraction) throws Exception
Exception
private List<String> getDisplayOptionalColumnNames(Configuration configuration) throws ConfigurationException
ConfigurationException
private Map<String,String> getQueryVariablesNamesAndContentTypes(Configuration configuration)
private ExtractionComponent _processExtractionComponent(Configuration componentConfiguration) throws Exception
Exception