Package com.hybris.cockpitng.core
Interface CockpitComponentDefinitionFactory
-
- All Known Implementing Classes:
AbstractComponentDefinitionFactory,ActionDefinitionFactory,EditorDefinitionFactory,WidgetDefinitionFactory
public interface CockpitComponentDefinitionFactoryFactory responsible for creation of component definition based on component info object (as provided by component loader).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AbstractCockpitComponentDefinitioncreate(CockpitComponentInfo info)Creates a component definition out of information about it.default voidinitialize(CockpitComponentInfo info, AbstractCockpitComponentDefinition definition)Initializes component previously created bycreate(CockpitComponentInfo)method.
-
-
-
Method Detail
-
create
AbstractCockpitComponentDefinition create(CockpitComponentInfo info)
Creates a component definition out of information about it. Information itself may be altered, if any new meta data becomes available in process of creating component definition (yet none of already existing information should be lost).
Definition may not be yet initialized. After all definitions are created, they should be additionally initialized by calling factory's
initialize(CockpitComponentInfo, AbstractCockpitComponentDefinition)method.- Parameters:
info- information about component- Returns:
- definition created
-
initialize
default void initialize(CockpitComponentInfo info, AbstractCockpitComponentDefinition definition)
Initializes component previously created by
create(CockpitComponentInfo)method.Method should not be called before all required definitions were created.
- Parameters:
info- information which was base for component to be initializeddefinition- component definition to be initialized
-
-