public class PlexusObjectFactory
extends com.opensymphony.xwork2.ObjectFactory
<plexus> <components> <component> <role>com.acme.MyBean</role> <implementation>com.acme.MyBean|com.acme.MyBeanImpl</implementation> <componentComposer>field|setter|?</componentComposer> <requirements> <requirement> <role>com.acme.MyOtherBean</role> </requirement> </requirements> <configuration> <foo>123</foo> <bar>hello, world</bar> </configuration> </component> </components> </plexus>
Constructor and Description |
---|
PlexusObjectFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
buildAction(String actionName,
String namespace,
com.opensymphony.xwork2.config.entities.ActionConfig config,
Map extraContext) |
Object |
buildBean(Class clazz,
Map extraContext) |
com.opensymphony.xwork2.interceptor.Interceptor |
buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig,
Map interceptorRefParams) |
com.opensymphony.xwork2.Result |
buildResult(com.opensymphony.xwork2.config.entities.ResultConfig resultConfig,
Map extraContext) |
com.opensymphony.xwork2.validator.Validator |
buildValidator(String className,
Map params,
Map extraContext) |
Class |
getClassInstance(String className) |
void |
setReflectionProvider(com.opensymphony.xwork2.util.reflection.ReflectionProvider reflectionProvider) |
void |
setServletConfig(javax.servlet.ServletContext servletContext) |
buildBean, buildBean, buildConverter, getObjectFactory, injectInternalBeans, isNoArgConstructorRequired, setActionFactory, setClassLoader, setContainer, setConverterFactory, setInterceptorFactory, setResultFactory, setValidatorFactory
public void setReflectionProvider(com.opensymphony.xwork2.util.reflection.ReflectionProvider reflectionProvider)
public void setServletConfig(javax.servlet.ServletContext servletContext)
public Object buildAction(String actionName, String namespace, com.opensymphony.xwork2.config.entities.ActionConfig config, Map extraContext) throws Exception
buildAction
in class com.opensymphony.xwork2.ObjectFactory
Exception
public com.opensymphony.xwork2.interceptor.Interceptor buildInterceptor(com.opensymphony.xwork2.config.entities.InterceptorConfig interceptorConfig, Map interceptorRefParams) throws com.opensymphony.xwork2.config.ConfigurationException
buildInterceptor
in class com.opensymphony.xwork2.ObjectFactory
com.opensymphony.xwork2.config.ConfigurationException
public com.opensymphony.xwork2.Result buildResult(com.opensymphony.xwork2.config.entities.ResultConfig resultConfig, Map extraContext) throws Exception
buildResult
in class com.opensymphony.xwork2.ObjectFactory
Exception
public com.opensymphony.xwork2.validator.Validator buildValidator(String className, Map params, Map extraContext) throws Exception
buildValidator
in class com.opensymphony.xwork2.ObjectFactory
Exception
public Object buildBean(Class clazz, Map extraContext) throws Exception
buildBean
in class com.opensymphony.xwork2.ObjectFactory
Exception
public Class getClassInstance(String className) throws ClassNotFoundException
getClassInstance
in class com.opensymphony.xwork2.ObjectFactory
ClassNotFoundException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.