webwork/src/main/webwork/action/factory DefaultActionFactory.java,1.25,1.26
[email protected] Tue, 18 Nov 2003 20:01:39 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/action/factory
In directory sc8-pr-cvs1:/tmp/cvs-serv13008/src/main/webwork/action/factory
Modified Files:
DefaultActionFactory.java
Log Message:
Make it slightly easier to subclass just to change the root java factory
Index: DefaultActionFactory.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/action/factory/DefaultActionFactory.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- DefaultActionFactory.java 9 Nov 2003 21:03:51 -0000 1.25
+++ DefaultActionFactory.java 19 Nov 2003 04:01:37 -0000 1.26
@@ -65,14 +65,7 @@
// Default series of factory proxies
// RO: There is a purpose for the duplicated
// command proxy. DON'T REMOVE THE SECOND ONE!
- try {
- boolean reloadEnabled = "true".equalsIgnoreCase(Configuration.getString("webwork.action.java.reload"));
- if(reloadEnabled)
- factory = new ReloadingJavaActionFactory();
- } catch(IllegalArgumentException ex)
- {}
- if(factory==null)
- factory = new JavaActionFactory();
+ factory = getRootFactory();
factory = new ScriptActionFactoryProxy(factory);
factory = new XMLActionFactoryProxy(factory);
factory = new PrefixActionFactoryProxy(factory);
@@ -90,6 +83,23 @@
factory = new ReloadHelperActionFactoryProxy(factory);
} catch(IllegalArgumentException ex)
{}
+ }
+
+ protected ActionFactory getRootFactory()
+ {
+ ActionFactory root = null;
+ try {
+ boolean reloadEnabled = "true".equalsIgnoreCase(Configuration.getString("webwork.action.java.reload"));
+ if(reloadEnabled)
+ root = new ReloadingJavaActionFactory();
+ }
+ catch(IllegalArgumentException ex)
+ {
+ }
+ if(root == null)
+ root = new JavaActionFactory();
+
+ return root;
}
/**
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/