Class ContainerExpanderVisitor
java.lang.Object
com.aquima.interactions.portal.model.def.ContainerExpanderVisitor
- All Implemented Interfaces:
IContainerExpanderVisitor
The dynamic container visitor that is used during initialization to add all dynamic containers that are available
through the data source.
- Since:
- 7.0
- Author:
- Jon van Leuven
-
Constructor Summary
ModifierConstructorDescriptionprotected
ContainerExpanderVisitor
(IParserFactory parserFactory, IContainerFactory factory, IProject project, IModule module, Map<String, IContainerExpanderDefinition> result) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContainerExpander
(IContainerExpanderDS datasource) This method should be invoked by the data-source implementation to notify the portal engine of the existence of a container expander.static Map
<String, IContainerExpanderDefinition> process
(IModuleDS datasource, IProject project, IModule module, IParserFactory parserFactory, IContainerFactory containerFactory) This method initializes a map with the container expanders from the datasource.
-
Constructor Details
-
ContainerExpanderVisitor
protected ContainerExpanderVisitor(IParserFactory parserFactory, IContainerFactory factory, IProject project, IModule module, Map<String, IContainerExpanderDefinition> result)
-
-
Method Details
-
process
public static Map<String,IContainerExpanderDefinition> process(IModuleDS datasource, IProject project, IModule module, IParserFactory parserFactory, IContainerFactory containerFactory) This method initializes a map with the container expanders from the datasource.- Parameters:
datasource
- Data source providing the container expander information.project
- Project containing the expander definitions.module
- The module whose expanders are being addedparserFactory
- Factory that may be used to create expression parsers.containerFactory
- Factory that is used to check if an implementation is available for the expanders.- Returns:
- Map containing the container expanders.
- Throws:
InitializationException
- This exception is thrown when the container expanders could not be initialized.
-
addContainerExpander
Description copied from interface:IContainerExpanderVisitor
This method should be invoked by the data-source implementation to notify the portal engine of the existence of a container expander. The method should be invoked for each container expander.- Specified by:
addContainerExpander
in interfaceIContainerExpanderVisitor
- Parameters:
datasource
- The container expander datasource.
-