Class FacadeFactoryImpl
java.lang.Object
ch.tocco.nice2.netui.impl.bind.form.FacadeFactoryImpl
- All Implemented Interfaces:
FacadeFactory
-
Constructor Summary
ConstructorDescriptionFacadeFactoryImpl
(org.slf4j.Logger log, TypeManager typeManager, FormModel formModel, DataModel dataModel, PersistPermissionService permissionService) -
Method Summary
Modifier and TypeMethodDescriptioncreateFacade
(Component component, FacadeHandlerContext ctx) void
ensureConstructor
(Class<? extends ComponentFacade> facade) Set the component → facade mapping map.void
setFacadeMappings
(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:
createFacade
in interfaceFacadeFactory
- Throws:
InstantiationException
IllegalAccessException
-