Package com.hybris.cockpitng.core.impl
Class WidgetDefinitionFactory
- java.lang.Object
-
- com.hybris.cockpitng.core.impl.AbstractComponentDefinitionFactory
-
- com.hybris.cockpitng.core.impl.WidgetDefinitionFactory
-
- All Implemented Interfaces:
CockpitComponentDefinitionFactory
public class WidgetDefinitionFactory extends AbstractComponentDefinitionFactory
Responsible for creating WidgetDefinition instances based on provided cockpit component info.
-
-
Field Summary
-
Fields inherited from class com.hybris.cockpitng.core.impl.AbstractComponentDefinitionFactory
ARRAY_CAPACITY, PATH_SEPARATOR, PROPERTY_COMPONENT_SETTINGS, PROPERTY_WIDGET_ID, PROPERTY_WIDGET_INPUTS, PROPERTY_WIDGET_IO_FORWARDS, PROPERTY_WIDGET_OUTPUTS, PROPERTY_WIDGET_PARENT
-
-
Constructor Summary
Constructors Constructor Description WidgetDefinitionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WidgetDefinitioncreateDefinition(CockpitComponentInfo info)voidinitialize(CockpitComponentInfo info, AbstractCockpitComponentDefinition definition)Initializes component previously created byCockpitComponentDefinitionFactory.create(CockpitComponentInfo)method.protected voidloadProperties(java.util.Properties properties, WidgetDefinition xmlDef)voidsetCockpitConfigurationService(DefaultCockpitConfigurationService cockpitConfigurationService)voidsetXmlWidgetPersistenceService(XMLWidgetPersistenceService xmlWidgetPersistenceService)-
Methods inherited from class com.hybris.cockpitng.core.impl.AbstractComponentDefinitionFactory
checkIfFileIsAbsent, create, getDirectoryURI, getInfoResourceAsStream, getWidgetSimpleID, getXMLDefinition, loadProperties, parseSocketInfo, setDirectoryURI, setJaxbContextFactory, setProperty
-
-
-
-
Method Detail
-
createDefinition
public WidgetDefinition createDefinition(CockpitComponentInfo info)
- Specified by:
createDefinitionin classAbstractComponentDefinitionFactory
-
loadProperties
protected void loadProperties(java.util.Properties properties, WidgetDefinition xmlDef)
-
initialize
public void initialize(CockpitComponentInfo info, AbstractCockpitComponentDefinition definition)
Description copied from interface:CockpitComponentDefinitionFactoryInitializes component previously created by
CockpitComponentDefinitionFactory.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
-
setXmlWidgetPersistenceService
public void setXmlWidgetPersistenceService(XMLWidgetPersistenceService xmlWidgetPersistenceService)
-
setCockpitConfigurationService
public void setCockpitConfigurationService(DefaultCockpitConfigurationService cockpitConfigurationService)
-
-