ovidiu 02/03/19 01:28:51 Modified: src/scratchpad/schecoon/src/org/apache/cocoon/components/flow InterpreterSelector.java Log: Use the "load-on-startup" XML attribute of <component-instance> to specify a file which should be executed on Interpreter start-up. Normally this provides the definitions need for flow scripts. Revision Changes Path 1.5 +3 -0 xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/InterpreterSelector.java Index: InterpreterSelector.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/InterpreterSelector.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- InterpreterSelector.java 17 Mar 2002 21:53:37 -0000 1.4 +++ InterpreterSelector.java 19 Mar 2002 09:28:51 -0000 1.5 @@ -49,6 +49,7 @@ Configuration component = components[i]; String name = component.getAttribute("name"); String className = component.getAttribute("class"); + String loadOnStartup = component.getAttribute("load-on-startup", null); Class clazz; try { clazz = loader.loadClass(className); @@ -60,6 +61,8 @@ if (interp instanceof AbstractInterpreter) { ((AbstractInterpreter)interp).setReloadScripts(reloadScripts); ((AbstractInterpreter)interp).setCheckTime(checkTime); + if (loadOnStartup != null) + ((AbstractInterpreter)interp).register(loadOnStartup); } if (interp instanceof Loggable)
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]