This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Plexus Plugin
Skip to end of metadata
Go to start of metadata

(warning) The Plexus Plugin is experimental. Feedback is appreciated!

While Plexusis similar to other inversion-of-control (IoC) or dependency injection frameworks such as the Spring Framework, it's fully-fledged container supports many more features.

The Plexus plugin enables Struts Actions, Interceptors, and Results to be created and injected by Plexus.

This plugin provides an ObjectFactory implementation that tries to create Struts Action, Interceptor, and Result classes as Plexus objects.


  • Allows Actions, Results, and Interceptors to be created and managed by Plexus


To use the plugin, when configuring Struts Actions, Interceptors, or Results in struts.xml, set the class attribute to contain the Plexus object id, rather than the actual Java class. This will allow Plexus to create the object and inject any dependencies also managed by Plexus.


A simple Action using a Plexus id
<action name="myAction" class="myPlexusId">


The following settings can be customized. See the developer guide.




Possible Values


The name or class name of the ObjectFactory implementation to use


plexus, struts, or any class that extends ObjectFactory


This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. No other files need to be copied or created.