mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
Changes necessary for XWork 2.1:
* New EL abstraction to allow ONGL to be replaced * Got rid of static factories and state, in favor of dep injection * New plugin API points for the EL abstraction XW-566 XW-461 XW-561 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@577728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -38,7 +38,6 @@ import com.opensymphony.xwork2.config.entities.InterceptorConfig;
|
||||
import com.opensymphony.xwork2.config.entities.ResultConfig;
|
||||
import com.opensymphony.xwork2.inject.Inject;
|
||||
import com.opensymphony.xwork2.interceptor.Interceptor;
|
||||
import com.opensymphony.xwork2.util.OgnlUtil;
|
||||
import com.opensymphony.xwork2.validator.Validator;
|
||||
|
||||
/**
|
||||
@@ -144,7 +143,7 @@ public class PlexusObjectFactory extends ObjectFactory {
|
||||
Map extraContext = new HashMap();
|
||||
extraContext.put(PLEXUS_COMPONENT_TYPE, Interceptor.class.getName());
|
||||
Interceptor interceptor = (Interceptor) buildBean(interceptorClassName, extraContext);
|
||||
OgnlUtil.setProperties(params, interceptor);
|
||||
reflectionProvider.setProperties(params, interceptor);
|
||||
interceptor.init();
|
||||
|
||||
return interceptor;
|
||||
@@ -195,7 +194,7 @@ public class PlexusObjectFactory extends ObjectFactory {
|
||||
Map context = new HashMap();
|
||||
context.put(PLEXUS_COMPONENT_TYPE, Validator.class.getName());
|
||||
Validator validator = (Validator) buildBean(className, context);
|
||||
OgnlUtil.setProperties(params, validator);
|
||||
reflectionProvider.setProperties(params, validator);
|
||||
|
||||
return validator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user