Package org.apache.struts2.convention
Interface ResultMapBuilder
- All Known Implementing Classes:
DefaultResultMapBuilder
public interface ResultMapBuilder
This interface defines how results are constructed for an Action. The action information is supplied and the result is a mapping of ResultConfig instances to the result name.
-
Method Summary
-
Method Details
-
build
Map<String,org.apache.struts2.config.entities.ResultConfig> build(Class<?> actionClass, Action annotation, String actionName, org.apache.struts2.config.entities.PackageConfig packageConfig) Builds the result configurations given the action information.- Parameters:
actionClass- The class of the action.annotation- The action annotation.actionName- The action name.packageConfig- The package configuration that the action will be added to.- Returns:
- The mapping of the result names to the result configurations. If there were none found than this should return an empty Map.
-