Class ComponentHandlerContextFactoryImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.reader.ComponentHandlerContextFactoryImpl
- All Implemented Interfaces:
ComponentHandlerContextFactory
@Component
public final class ComponentHandlerContextFactoryImpl
extends Object
implements ComponentHandlerContextFactory
-
Constructor Summary
ConstructorDescriptionComponentHandlerContextFactoryImpl
(DisplayValueFactory displayValueFactory, TemplateModel templateModel, DataPathFactory dataPathFactory, ValidatorHandlerContextFactory validatorHandlerContextFactory, TypeManager typeManager, DefaultValueResolver resolver, ComponentConverterService componentConverterService) -
Method Summary
Modifier and TypeMethodDescriptionUsage: First create a context with this factory for a component.void
setReaders
(List<ComponentReaderContribution> readers)
-
Constructor Details
-
Method Details
-
create
Description copied from interface:ComponentHandlerContextFactory
Usage: First create a context with this factory for a component. With this context, create for each sub-component a new XML-Event receiver withComponentHandlerContext.buildComponentHandler(String)
If all sub-components are done, call ComponentHandlerContext#finish(ch.tocco.nice2.model.form.components.Component) with the parent component as argument.- Specified by:
create
in interfaceComponentHandlerContextFactory
- Parameters:
parentComponent
- the parent component. If null the parent doesn't exist yet.- Returns:
- the context
-
setReaders
-