Class EntityViewElementBuilderServiceImpl
java.lang.Object
com.foreach.across.modules.entity.views.EntityViewElementBuilderServiceImpl
- All Implemented Interfaces:
EntityViewElementBuilderService
@Service
public class EntityViewElementBuilderServiceImpl
extends Object
implements EntityViewElementBuilderService
- Author:
- Arne Vandamme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.foreach.across.modules.web.ui.ViewElementBuilder
createElementBuilder
(EntityPropertyDescriptor descriptor, ViewElementMode mode) Creates a newViewElementBuilder
instance for the given property descriptor.com.foreach.across.modules.web.ui.ViewElementBuilder
createElementBuilder
(EntityPropertyDescriptor descriptor, ViewElementMode mode, String elementType) Creates a newViewElementBuilder
instance of the given elementType for the specific property descriptor.com.foreach.across.modules.web.ui.ViewElementBuilder
getElementBuilder
(EntityPropertyDescriptor descriptor, ViewElementMode mode) Retrieves aViewElementBuilder
for a property descriptor.
-
Constructor Details
-
EntityViewElementBuilderServiceImpl
-
-
Method Details
-
getElementBuilder
public com.foreach.across.modules.web.ui.ViewElementBuilder getElementBuilder(EntityPropertyDescriptor descriptor, ViewElementMode mode) Description copied from interface:EntityViewElementBuilderService
Retrieves aViewElementBuilder
for a property descriptor. Depending on the backing strategy a new or reusable instance will be returned.- Specified by:
getElementBuilder
in interfaceEntityViewElementBuilderService
- Parameters:
descriptor
- of the specific propertymode
- for which we are requesting the builder- Returns:
- builder instance
-
createElementBuilder
public com.foreach.across.modules.web.ui.ViewElementBuilder createElementBuilder(EntityPropertyDescriptor descriptor, ViewElementMode mode) Description copied from interface:EntityViewElementBuilderService
Creates a newViewElementBuilder
instance for the given property descriptor. The type of the builder will be determined automatically based on the descriptor and requested mode.- Specified by:
createElementBuilder
in interfaceEntityViewElementBuilderService
- Parameters:
descriptor
- of the specific propertymode
- for which we are requesting the builder- Returns:
- newly created builder instance
-
createElementBuilder
public com.foreach.across.modules.web.ui.ViewElementBuilder createElementBuilder(EntityPropertyDescriptor descriptor, ViewElementMode mode, String elementType) Description copied from interface:EntityViewElementBuilderService
Creates a newViewElementBuilder
instance of the given elementType for the specific property descriptor.- Specified by:
createElementBuilder
in interfaceEntityViewElementBuilderService
- Parameters:
descriptor
- of the specific propertymode
- for which we are requesting the builderelementType
- of the builder that should be created- Returns:
- newly created builder instance
-