Class WebClientRegisterExtensionsProcessor
- All Implemented Interfaces:
ExtensionsFileProcessor
- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2014-10-22 18:41:55 +0200 (on, 22 okt 2014) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PathConverter
private final String
private final String
private final VariableConverter
-
Constructor Summary
ConstructorDescriptionWebClientRegisterExtensionsProcessor
(String rootPath, String resourcesPath, String servletsPath, ProcessResults results) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processFile
(ExtensionsManager manager, ExtensionsFile.WriteableExtensionsFile wFile) Called by the extensions manager for each extensions file that it manages.Methods inherited from class net.sf.basedb.util.extensions.manager.processor.RegisterExtensionsProcessor
begin, done, done, finalizeRegistration, getNumError, getNumFiles, getNumRegistered, getNumUnregistered, getProcessResults, getXmlLoader, isRegistrationDelayed, setDelayRegistration, setForceUpdate
-
Field Details
-
variableConverter
-
pathConverter
-
resourcesPath
-
servletsPath
-
-
Constructor Details
-
WebClientRegisterExtensionsProcessor
public WebClientRegisterExtensionsProcessor(String rootPath, String resourcesPath, String servletsPath, ProcessResults results)
-
-
Method Details
-
processFile
Description copied from interface:ExtensionsFileProcessor
Called by the extensions manager for each extensions file that it manages. The order of the files is generally not predicatable and may change from one invokation to the next.If the processor throws an exception the manager will abort processing and call
ExtensionsFileProcessor.done(ExtensionsManager, Throwable)
. Error that are related to a specific file should be catched by the processor and registered by calling .......If all files was processed without exceptions the manager will call
ExtensionsFileProcessor.done(ExtensionsManager)
.Note that the file is read-only to begin with. If the processor wants to call any write-operation the file must be opened by calling
ExtensionsFile.WriteableExtensionsFile.open()
. It is recommended that the processor callsExtensionsFile.WriteableExtensionsFile.close()
once it is done writing.- Specified by:
processFile
in interfaceExtensionsFileProcessor
- Overrides:
processFile
in classRegisterExtensionsProcessor
- Parameters:
manager
- The manager that is executing the actionwFile
- The file to be processed
-