public class SimpleWidgetFactory extends Object implements WidgetFactory
Constructor and Description |
---|
SimpleWidgetFactory() |
Modifier and Type | Method and Description |
---|---|
Widget |
createWidget(String widgetGroupName,
String widgetName,
Map<String,String[]> requestParameters)
Create a new widget instance that should handle the current widget request.
|
void |
setWidgetPackagePrefix(String widgetPackagePrefix)
Set an optional package prefix to interpret the widget group as a relative package and thus
only resolve widgets which are in a sub-package of that package.
|
public Widget createWidget(String widgetGroupName, String widgetName, Map<String,String[]> requestParameters) throws WidgetCreationException
WidgetFactory
createWidget
in interface WidgetFactory
widgetGroupName
- the group of the widgetwidgetName
- the name of the widgetrequestParameters
- the request parameters of the current requestWidgetCreationException
- in case the widget cannot be createdpublic void setWidgetPackagePrefix(String widgetPackagePrefix)
widgetPackagePrefix
- the package prefix used by this instance to resolve the widget classesCopyright © 2019 Communote team. All rights reserved.