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
 java.util.Map<java.lang.String,ResultConfig> build(java.lang.Class<?> actionClass, Action annotation, java.lang.String actionName, PackageConfig packageConfig)
          Builds the result configurations given the action information.
 

Method Detail

build

java.util.Map<java.lang.String,ResultConfig> build(java.lang.Class<?> actionClass,
                                                   Action annotation,
                                                   java.lang.String actionName,
                                                   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.


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.