org.apache.struts2.plexus
Class PlexusObjectFactory
java.lang.Object
com.opensymphony.xwork2.ObjectFactory
org.apache.struts2.plexus.PlexusObjectFactory
- All Implemented Interfaces:
- java.io.Serializable
public class PlexusObjectFactory
- extends ObjectFactory
Plexus integartion. You need three optional files: plexus-request.xml, plexus-session.xml, and
plexus-application.xml.
The syntax of these files is:
<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>
- Author:
- Emmanuel Venisse
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlexusObjectFactory
public PlexusObjectFactory()
setServletConfig
public void setServletConfig(javax.servlet.ServletContext servletContext)
buildAction
public java.lang.Object buildAction(java.lang.String actionName,
java.lang.String namespace,
ActionConfig config,
java.util.Map extraContext)
throws java.lang.Exception
- Overrides:
buildAction
in class ObjectFactory
- Throws:
java.lang.Exception
buildInterceptor
public Interceptor buildInterceptor(InterceptorConfig interceptorConfig,
java.util.Map interceptorRefParams)
throws ConfigurationException
- Overrides:
buildInterceptor
in class ObjectFactory
- Throws:
ConfigurationException
buildResult
public Result buildResult(ResultConfig resultConfig,
java.util.Map extraContext)
throws java.lang.Exception
- Overrides:
buildResult
in class ObjectFactory
- Throws:
java.lang.Exception
buildValidator
public Validator buildValidator(java.lang.String className,
java.util.Map params,
java.util.Map extraContext)
throws java.lang.Exception
- Overrides:
buildValidator
in class ObjectFactory
- Throws:
java.lang.Exception
buildBean
public java.lang.Object buildBean(java.lang.Class clazz,
java.util.Map extraContext)
throws java.lang.Exception
- Overrides:
buildBean
in class ObjectFactory
- Throws:
java.lang.Exception
getClassInstance
public java.lang.Class getClassInstance(java.lang.String className)
throws java.lang.ClassNotFoundException
- Overrides:
getClassInstance
in class ObjectFactory
- Throws:
java.lang.ClassNotFoundException
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.