Class ExtractionDefinitionReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.extraction.execution.ExtractionDefinitionReader
-
- All Implemented Interfaces:
Component
,Contextualizable
,LogEnabled
,Serviceable
public class ExtractionDefinitionReader extends AbstractLogEnabled implements Component, Contextualizable, Serviceable
This class reads the extraction definition file
-
-
Constructor Summary
Constructors Constructor Description ExtractionDefinitionReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
Extraction
readExtractionDefinitionFile(File file)
Read the extraction definition fileExtraction
readVariablesDefinitionsInExtractionDefinitionFile(File file)
Read the extraction definition filevoid
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
ExtractionDefinitionReader
public ExtractionDefinitionReader()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
readExtractionDefinitionFile
public Extraction readExtractionDefinitionFile(File file) throws Exception
Read the extraction definition file- Parameters:
file
- extraction definition file- Returns:
- the extraction components parsed in the definition file
- Throws:
Exception
- if an error occurs
-
readVariablesDefinitionsInExtractionDefinitionFile
public Extraction readVariablesDefinitionsInExtractionDefinitionFile(File file) throws Exception
Read the extraction definition file- Parameters:
file
- extraction definition file- Returns:
- the extraction components parsed in the definition file
- Throws:
Exception
- if an error occurs
-
-