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 voidcontextualize(Context context)ExtractionreadExtractionDefinitionFile(File file)Read the extraction definition fileExtractionreadVariablesDefinitionsInExtractionDefinitionFile(File file)Read the extraction definition filevoidservice(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:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein 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
-
-