Package org.apache.struts2.convention
Class DefaultInterceptorMapBuilder
java.lang.Object
org.apache.struts2.convention.DefaultInterceptorMapBuilder
- All Implemented Interfaces:
InterceptorMapBuilder
Builds interceptor mappings from annotations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.struts2.config.entities.InterceptorMapping>build(Class<?> actionClass, org.apache.struts2.config.entities.PackageConfig.Builder builder, String actionName, Action annotation) Builds the interceptor configurations given the action information.protected List<org.apache.struts2.config.entities.InterceptorMapping>build(InterceptorRef[] interceptors, String actionName, org.apache.struts2.config.entities.PackageConfig.Builder builder) protected List<org.apache.struts2.config.entities.InterceptorMapping>buildInterceptorList(org.apache.struts2.config.entities.PackageConfig.Builder builder, InterceptorRef ref, Map params) voidsetConfiguration(org.apache.struts2.config.Configuration configuration)
-
Constructor Details
-
DefaultInterceptorMapBuilder
public DefaultInterceptorMapBuilder()
-
-
Method Details
-
build
public List<org.apache.struts2.config.entities.InterceptorMapping> build(Class<?> actionClass, org.apache.struts2.config.entities.PackageConfig.Builder builder, String actionName, Action annotation) Description copied from interface:InterceptorMapBuilderBuilds the interceptor configurations given the action information.- Specified by:
buildin interfaceInterceptorMapBuilder- Parameters:
actionClass- The class of the action.builder- The package configuration builder.actionName- The action name.annotation- The action annotation.- Returns:
- The mapping of the interceptors. If there were none found then this should return an empty List.
-
build
protected List<org.apache.struts2.config.entities.InterceptorMapping> build(InterceptorRef[] interceptors, String actionName, org.apache.struts2.config.entities.PackageConfig.Builder builder) -
buildInterceptorList
protected List<org.apache.struts2.config.entities.InterceptorMapping> buildInterceptorList(org.apache.struts2.config.entities.PackageConfig.Builder builder, InterceptorRef ref, Map params) -
setConfiguration
public void setConfiguration(org.apache.struts2.config.Configuration configuration)
-