Class FacadeFactoryImpl
java.lang.Object
ch.tocco.nice2.netui.impl.bind.form.FacadeFactoryImpl
- All Implemented Interfaces:
FacadeFactory
-
Constructor Summary
ConstructorsConstructorDescriptionFacadeFactoryImpl(org.slf4j.Logger log, TypeManager typeManager, FormModel formModel, DataModel dataModel, PersistPermissionService permissionService) -
Method Summary
Modifier and TypeMethodDescriptioncreateFacade(Component component, FacadeHandlerContext ctx) voidensureConstructor(Class<? extends ComponentFacade> facade) Set the component → facade mapping map.voidsetFacadeMappings(List<FacadeMapping> facadeContributions)
-
Constructor Details
-
FacadeFactoryImpl
public FacadeFactoryImpl(org.slf4j.Logger log, TypeManager typeManager, FormModel formModel, DataModel dataModel, PersistPermissionService permissionService)
-
-
Method Details
-
ensureConstructor
Set the component → facade mapping map. Checks if there is a default parameterless constructor available, otherwise throws aRuntimeException- Parameters:
facade- the component → facade mapping
-
setFacadeMappings
-
createFacade
public ComponentFacade createFacade(Component component, FacadeHandlerContext ctx) throws InstantiationException, IllegalAccessException - Specified by:
createFacadein interfaceFacadeFactory- Throws:
InstantiationExceptionIllegalAccessException
-