new SessionHandlerProviderByDirectory(directory, optionsopt)
Provides Session Handlers by loading all of the files in a directory as Session Handlers
items are loaded synchronously as there is no way to determine when a filter is required asynchronously
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
directory |
String | The directory to read from | ||||||||||||||||
options |
Object |
<optional> |
Options for the was the directory is process
Properties
|
- Implements:
- Provider
- ItemProvider
- Source:
- See:
Methods
getEndSessionHandlers() → {Array.Filter}
Returns all the post items (items that implement executePost())
Returns:
Array of all the loaded post items
- Type
- Array.Filter
getStartSessionHandlers() → {Array.Filter}
Returns all the pre items (items that implement executePre())
Returns:
Array of all the loaded pre items
- Type
- Array.Filter
processItem(items, itemId, fileName, options)
Processes the specific item and returns the result
Parameters:
Name | Type | Description |
---|---|---|
items |
Map | Map of the items being processed |
itemId |
String | The Id of the item to process |
fileName |
String | The name of the file being processed |
options |
Object | Any options that are being passed to the ItemProcessor (can be null) |
processItems(items, fileName, options)
Processes multiple items at once
Parameters:
Name | Type | Description |
---|---|---|
items |
Map | Map of the items being processed |
fileName |
String | The name of the file being processed |
options |
Object | Any options that are being passed to the ItemProcessor (can be null) |