Class CockpitModuleConfigurationContextDecorator
- java.lang.Object
-
- com.hybris.cockpitng.modules.config.impl.CockpitModuleConfigurationContextDecorator
-
- All Implemented Interfaces:
WidgetConfigurationContextDecorator
public class CockpitModuleConfigurationContextDecorator extends java.lang.Object implements WidgetConfigurationContextDecorator
Adds the "_root_" as the module context if no module context is set.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMODULE_CONTEXT_NAMEname of the module contextstatic java.lang.StringROOT_MODULE_CONTEXT_VALUEvalue of the root module context
-
Constructor Summary
Constructors Constructor Description CockpitModuleConfigurationContextDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <CONFIG> ConfigContextdecorateContext(ConfigContext context, java.lang.Class<CONFIG> configClass, WidgetInstance widgetInstance)
-
-
-
Field Detail
-
MODULE_CONTEXT_NAME
public static final java.lang.String MODULE_CONTEXT_NAME
name of the module context- See Also:
- Constant Field Values
-
ROOT_MODULE_CONTEXT_VALUE
public static final java.lang.String ROOT_MODULE_CONTEXT_VALUE
value of the root module context- See Also:
- Constant Field Values
-
-
Method Detail
-
decorateContext
public <CONFIG> ConfigContext decorateContext(ConfigContext context, java.lang.Class<CONFIG> configClass, WidgetInstance widgetInstance)
- Specified by:
decorateContextin interfaceWidgetConfigurationContextDecorator
-
-