You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2003/06/09 14:07:28 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/util TurbineConfig.java TurbineXmlConfig.java
epugh 2003/06/09 05:07:28
Modified: . project.xml
conf/test TurbineConfiguration.xml
src/java/org/apache/turbine Turbine.java
src/test/org/apache/turbine TurbineConfigTest.java
ConfigurationTest.java
src/java/org/apache/turbine/util TurbineConfig.java
TurbineXmlConfig.java
Log:
Reviewed and applied Henning's patch to get
CompositeConfiguration's using the ConfigurationFactory
all working.. Note: This requires a version of
commons-configuration newer then what is in ibiblio. I am
going to work on getting it up there.
Revision Changes Path
1.118 +1 -1 jakarta-turbine-2/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/project.xml,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -r1.117 -r1.118
--- project.xml 6 Jun 2003 09:45:37 -0000 1.117
+++ project.xml 9 Jun 2003 12:07:27 -0000 1.118
@@ -317,7 +317,7 @@
</dependency>
<dependency>
<id>commons-configuration</id>
- <version>1.0-dev-3.20030603.101200</version>
+ <version>1.0-dev-3.20030607.194155</version>
<url>http://jakarta.apache.org/commons/sandbox/configuration/index.html</url>
<properties>
<war.bundle.jar>true</war.bundle.jar>
1.2 +2 -2 jakarta-turbine-2/conf/test/TurbineConfiguration.xml
Index: TurbineConfiguration.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/conf/test/TurbineConfiguration.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TurbineConfiguration.xml 6 Jun 2003 22:08:09 -0000 1.1
+++ TurbineConfiguration.xml 9 Jun 2003 12:07:28 -0000 1.2
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<configuration>
- <dom4j className="org.apache.commons.configuration.DOM4JConfiguration" fileName="/conf/test/TurbineResources.xml"/>
- <properties className="org.apache.commons.configuration.PropertiesConfiguration" fileName="/conf/test/TemplateService.properties"/>
+ <dom4j className="org.apache.commons.configuration.DOM4JConfiguration" fileName="conf/test/TurbineResources.xml"/>
+ <properties className="org.apache.commons.configuration.PropertiesConfiguration" fileName="conf/test/TemplateService.properties"/>
</configuration>
1.43 +2 -3 jakarta-turbine-2/src/java/org/apache/turbine/Turbine.java
Index: Turbine.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/Turbine.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- Turbine.java 6 Jun 2003 14:28:48 -0000 1.42
+++ Turbine.java 9 Jun 2003 12:07:28 -0000 1.43
@@ -326,9 +326,8 @@
if (StringUtils.isNotEmpty(confFile))
{
confPath = getRealPath(confFile);
- ConfigurationFactory configurationFactory = new ConfigurationFactory();
+ ConfigurationFactory configurationFactory = new ConfigurationFactory(confPath);
configurationFactory.setBasePath(getApplicationRoot());
- configurationFactory.setConfigurationFileName(confPath);
configuration = configurationFactory.getConfiguration();
confStyle = "XML";
}
1.3 +27 -21 jakarta-turbine-2/src/test/org/apache/turbine/TurbineConfigTest.java
Index: TurbineConfigTest.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/test/org/apache/turbine/TurbineConfigTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TurbineConfigTest.java 7 Jun 2003 09:22:44 -0000 1.2
+++ TurbineConfigTest.java 9 Jun 2003 12:07:28 -0000 1.3
@@ -53,33 +53,37 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
-import javax.servlet.*;
+
+import java.io.File;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletContext;
+
import junit.framework.Test;
-import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.turbine.Turbine;
+import org.apache.turbine.test.BaseTestCase;
import org.apache.turbine.util.TurbineConfig;
-import org.apache.turbine.util.*;
+import org.apache.turbine.util.TurbineXmlConfig;
/**
* This testcase verifies that TurbineConfig can be used to startup Turbine in a non
* servlet environment properly.
*
* @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
- *
* @version $Id$
*/
public class TurbineConfigTest
- extends TestCase
+ extends BaseTestCase
{
private static TurbineConfig tc = null;
private static TurbineXmlConfig txc = null;
public TurbineConfigTest(String name)
+ throws Exception
{
super(name);
-
}
public static Test suite()
@@ -87,29 +91,31 @@
return new TestSuite(TurbineConfigTest.class);
}
- public void testTurbineConfigWithPropertiesFile() throws Exception {
- String value = "/conf/test/TemplateService.properties";
+ public void testTurbineConfigWithPropertiesFile() throws Exception
+ {
+ String value = new File("/conf/test/TemplateService.properties").getPath();
tc = new TurbineConfig(".", value);
- ServletContext context = tc.getServletContext();
- ServletConfig config = (ServletConfig)tc;
+
+ ServletConfig config = (ServletConfig) tc;
+ ServletContext context = config.getServletContext();
+
String confFile= Turbine.findInitParameter(context, config,
TurbineConfig.PROPERTIES_PATH_KEY,
null);
- assertEquals(value,confFile);
-
+ assertEquals(value, confFile);
}
- public void testTurbineXmlConfigWithconfigurationFile() throws Exception {
- String value = "/conf/test/TurbineConfiguration.xml";
+ public void testTurbineXmlConfigWithConfigurationFile() throws Exception
+ {
+ String value = new File("/conf/test/TurbineConfiguration.xml").getPath();
txc = new TurbineXmlConfig(".", value);
- ServletContext context = txc.getServletContext();
- ServletConfig config = (ServletConfig)tc;
+
+ ServletConfig config = (ServletConfig) txc;
+ ServletContext context = config.getServletContext();
+
String confFile= Turbine.findInitParameter(context, config,
TurbineConfig.CONFIGURATION_PATH_KEY,
null);
- assertEquals(value,confFile);
-
+ assertEquals(value, confFile);
}
-
-
}
1.3 +48 -14 jakarta-turbine-2/src/test/org/apache/turbine/ConfigurationTest.java
Index: ConfigurationTest.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/test/org/apache/turbine/ConfigurationTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ConfigurationTest.java 7 Jun 2003 09:22:44 -0000 1.2
+++ ConfigurationTest.java 9 Jun 2003 12:07:28 -0000 1.3
@@ -53,35 +53,33 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
+
import junit.framework.Test;
-import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.commons.configuration.Configuration;
+
+import org.apache.turbine.test.BaseTestCase;
import org.apache.turbine.util.TurbineConfig;
import org.apache.turbine.util.TurbineXmlConfig;
-
/**
* Tests that the ConfigurationFactory and regular old properties methods both work.
* Verify the overriding of properties.
*
* @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
- *
* @version $Id$
*/
public class ConfigurationTest
- extends TestCase
+ extends BaseTestCase
{
private static TurbineConfig tc = null;
private static TurbineXmlConfig txc = null;
public ConfigurationTest(String name)
+ throws Exception
{
super(name);
-
-
-
}
public static Test suite()
@@ -89,26 +87,62 @@
return new TestSuite(ConfigurationTest.class);
}
-
-
public void testCreateTurbineWithConfigurationXML() throws Exception
{
txc = new TurbineXmlConfig(".", "/conf/test/TurbineConfiguration.xml");
+
+ try
+ {
txc.initialize();
Configuration configuration = Turbine.getConfiguration();
- assertTrue("Make sure we have values", !configuration.isEmpty());
+ assertNotNull("No Configuration Object found!", configuration);
+ assertTrue("Make sure we have values", !configuration.isEmpty());
// overridden value
String key = "module.cache";
- assertEquals("Read a config value " + key + ", receieved:" + configuration.getString(key), "true", configuration.getString(key));
+ assertEquals("Read a config value " + key + ", received:" + configuration.getString(key),
+ "true", configuration.getString(key));
// non overridden value
key = "scheduledjob.cache.size";
- assertEquals("Read a config value " + key + ", receieved:" + configuration.getString(key), "10", configuration.getString(key));
+ assertEquals("Read a config value " + key + ", received:" + configuration.getString(key),
+ "10", configuration.getString(key));
+ }
+ catch (Exception e)
+ {
+ throw e;
+ }
+ finally
+ {
+ txc.dispose();
+ }
+ }
+ public void testCreateTurbineWithConfiguration() throws Exception
+ {
+ tc = new TurbineConfig(".", "/conf/test/TemplateService.properties");
- }
+ try
+ {
+ tc.initialize();
+
+ Configuration configuration = Turbine.getConfiguration();
+ assertNotNull("No Configuration Object found!", configuration);
+ assertTrue("Make sure we have values", !configuration.isEmpty());
+ String key = "scheduledjob.cache.size";
+ assertEquals("Read a config value " + key + ", received:" + configuration.getString(key),
+ "10", configuration.getString(key));
+ }
+ catch (Exception e)
+ {
+ throw e;
+ }
+ finally
+ {
+ tc.dispose();
+ }
+ }
}
1.16 +8 -8 jakarta-turbine-2/src/java/org/apache/turbine/util/TurbineConfig.java
Index: TurbineConfig.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/TurbineConfig.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- TurbineConfig.java 7 Jun 2003 08:41:49 -0000 1.15
+++ TurbineConfig.java 9 Jun 2003 12:07:28 -0000 1.16
@@ -78,13 +78,13 @@
import org.apache.turbine.Turbine;
/**
- * A class used for initalization of Turbine without a servlet container.
+ * A class used for initialization of Turbine without a servlet container.
* <p>
* If you need to use Turbine outside of a servlet container, you can
- * use this class for initalization of the Turbine servlet.
+ * use this class for initialization of the Turbine servlet.
* <p>
* <blockquote><code><pre>
- * TurbineConfig config = new TurbineConfig(".", "/conf/TurbineResources.properties");
+ * TurbineConfig config = new TurbineConfig(".", "conf/TurbineResources.properties");
* </pre></code></blockquote>
* <p>
* All paths referenced in TurbineResources.properties and the path to
@@ -132,13 +132,13 @@
"/WEB-INF/conf/TurbineResources.properties";
/** Filenames are looked up in this directory. */
- private File root;
+ protected File root;
/** Servlet container (or emulator) attributes. */
- private Map attributes;
+ protected Map attributes;
/** Turbine servlet initialization parameters. */
- private Map initParams;
+ protected Map initParams;
/** The Turbine servlet instance used for initialization. */
private Turbine turbine;
@@ -253,8 +253,8 @@
public String getRealPath(String path)
{
String result = null;
-
File f = new File(root, path);
+
if (log.isDebugEnabled())
{
StringBuffer sb = new StringBuffer();
1.2 +9 -446 jakarta-turbine-2/src/java/org/apache/turbine/util/TurbineXmlConfig.java
Index: TurbineXmlConfig.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/TurbineXmlConfig.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TurbineXmlConfig.java 7 Jun 2003 09:22:44 -0000 1.1
+++ TurbineXmlConfig.java 9 Jun 2003 12:07:28 -0000 1.2
@@ -54,37 +54,17 @@
* <http://www.apache.org/>.
*/
-import java.io.BufferedInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
-import java.util.Set;
-import java.util.Vector;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.Servlet;
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletContext;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.avalon.framework.activity.Disposable;
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.turbine.Turbine;
/**
- * A class used for initalization of Turbine without a servlet container.
+ * A class used for initialization of Turbine without a servlet container.
* <p>
* If you need to use Turbine outside of a servlet container, you can
- * use this class for initalization of the Turbine servlet.
+ * use this class for initialization of the Turbine servlet.
* <p>
* <blockquote><code><pre>
- * TurbineXmlConfig config = new TurbineXmlConfig(".", "/conf/TurbineResources.properties");
+ * TurbineXmlConfig config = new TurbineXmlConfig(".", "conf/TurbineResources.properties");
* </pre></code></blockquote>
* <p>
* All paths referenced in TurbineResources.properties and the path to
@@ -101,52 +81,13 @@
*
* @todo Make this class enforce the lifecycle contracts
*
- * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
- * @author <a href="mailto:krzewski@e-point.pl">Rafal Krzewski</a>
- * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
- * @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
- * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
* @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
* @version $Id$
*/
public class TurbineXmlConfig
- implements ServletConfig, ServletContext, Initializable, Disposable
+ extends TurbineConfig
{
/**
- * Servlet initialization parameter name for the path to
- * TurbineXmlConfiguration.xml file used by Turbine
- */
- public static final String CONFIGURATION_PATH_KEY = "configuration";
-
- /**
- * Servlet initialization parameter name for the path to
- * Turbine.properties file used by Turbine
- */
- public static final String PROPERTIES_PATH_KEY = "properties";
-
- /**
- * Default value of TurbineResources.properties file path
- * (<code>/WEB-INF/conf/TurbineResources.properties</code>).
- */
- public static final String PROPERTIES_PATH_DEFAULT =
- "/WEB-INF/conf/TurbineResources.properties";
-
- /** Filenames are looked up in this directory. */
- protected File root;
-
- /** Servlet container (or emulator) attributes. */
- protected Map attributes;
-
- /** Turbine servlet initialization parameters. */
- protected Map initParams;
-
- /** The Turbine servlet instance used for initialization. */
- private Turbine turbine;
-
- /** Logging */
- private Log log = LogFactory.getLog(this.getClass());
-
- /**
* Constructs a new TurbineXmlConfig.
*
* This is the general form of the constructor. You can provide
@@ -162,9 +103,7 @@
*/
public TurbineXmlConfig(String path, Map attributes, Map initParams)
{
- root = new File(path);
- this.attributes = attributes;
- this.initParams = initParams;
+ super(path, attributes, initParams);
}
/**
@@ -182,387 +121,11 @@
* Turbine easiliy in the common setups.
*
* @param path The web application root (i.e. the path for file lookup).
- * @param properties the relative path to TurbineResources.properties file
+ * @param configuration the relative path to TurbineResources.xml file
*/
- public TurbineXmlConfig(String path, String properties)
+ public TurbineXmlConfig(String path, String config)
{
this(path, new HashMap(1));
- initParams.put(CONFIGURATION_PATH_KEY, properties);
- }
-
- /**
- * Causes this class to initialize itself which in turn initializes
- * all of the Turbine Services that need to be initialized.
- *
- * @see org.apache.stratum.lifecycle.Initializable
- */
- public void initialize()
- {
- try
- {
- turbine = new Turbine();
- turbine.init(this);
- }
- catch (Exception e)
- {
- log.error("TurbineXmlConfig: Initialization failed", e);
- }
- }
-
- /**
- * Initialization requiring a HTTP <code>GET</code> request.
- */
- public void init(RunData data)
- {
- if (turbine != null)
- {
- turbine.init(data);
- }
- }
-
- /**
- * Shutdown the Turbine System, lifecycle style
- *
- */
- public void dispose()
- {
- if (turbine != null)
- {
- turbine.destroy();
- }
- }
-
- /**
- * Returns a reference to the object cast onto ServletContext type.
- *
- * @return a ServletContext reference
- */
- public ServletContext getServletContext()
- {
- return this;
- }
-
- /**
- * Translates a path relative to the web application root into an
- * absolute path.
- *
- * @param path A path relative to the web application root.
- * @return An absolute version of the supplied path, or <code>null</code>
- * if the translated path doesn't map to a file or directory.
- */
- public String getRealPath(String path)
- {
- String result = null;
-
- File f = new File(root, path);
- if (log.isDebugEnabled())
- {
- StringBuffer sb = new StringBuffer();
-
- sb.append("TurbineXmlConfig.getRealPath: path '");
- sb.append(path);
- sb.append("' translated to '");
- sb.append(f.getPath());
- sb.append("' ");
- sb.append(f.exists() ? "" : "not ");
- sb.append("found");
- log.debug(sb.toString());
- }
-
- if (f.exists())
- {
- result = f.getPath();
- }
- else
- {
- log.error("getRealPath(\"" + path + "\") is undefined, returning null");
- }
-
- return result;
- }
-
- /**
- * Retrieves an initialization parameter.
- *
- * @param name the name of the parameter.
- * @return the value of the parameter.
- */
- public String getInitParameter(String name)
- {
- return (String) initParams.get(name);
- }
-
- /**
- * Retrieves an Enumeration of initialization parameter names.
- *
- * @return an Enumeration of initialization parameter names.
- */
- public Enumeration getInitParameterNames()
- {
- return new Vector(initParams.keySet()).elements();
- }
-
- /**
- * Returns the servlet name.
- *
- * Fixed value "Turbine" is returned.
- *
- * @return the servlet name.
- */
- public String getServletName()
- {
- return "Turbine";
- }
-
- /**
- * Returns the context name.
- *
- * Fixed value "Turbine" is returned
- *
- * @return the context name
- */
- public String getServletContextName()
- {
- return "Turbine";
- }
-
- /**
- * Returns a URL to the resource that is mapped to a specified
- * path. The path must begin with a "/" and is interpreted
- * as relative to the current context root.
- *
- * @param s the path to the resource
- * @return a URL pointing to the resource
- * @exception MalformedURLException
- */
- public URL getResource(String s)
- throws MalformedURLException
- {
- return new URL("file://" + getRealPath(s));
- }
-
- /**
- * Returns the resource located at the named path as
- * an <code>InputStream</code> object.
- *
- * @param s the path to the resource
- * @return an InputStream object from which the resource can be read
- */
- public InputStream getResourceAsStream(String s)
- {
- try
- {
- FileInputStream fis = new FileInputStream(getRealPath(s));
- return new BufferedInputStream(fis);
- }
- catch (FileNotFoundException e)
- {
- return null;
- }
- }
-
- /**
- * Logs an error message.
- *
- * @param e an Exception.
- * @param m a message.
- * @deprecated use log(String,Throwable) instead
- */
- public void log(Exception e, String m)
- {
- log.info(m, e);
- }
-
- /**
- * Logs a message.
- *
- * @param m a message.
- */
- public void log(String m)
- {
- log.info(m);
- }
-
- /**
- * Logs an error message.
- *
- * @param t a Throwable object.
- * @param m a message.
- */
- public void log(String m, Throwable t)
- {
- log.info(m, t);
- }
-
- /**
- * Returns the servlet container attribute with the given name, or
- * null if there is no attribute by that name.
- */
- public Object getAttribute(String s)
- {
- return attributes.get(s);
- }
-
- /**
- * Returns an Enumeration containing the attribute names available
- * within this servlet context.
- */
- public Enumeration getAttributeNames()
- {
- return new Vector(attributes.keySet()).elements();
- }
-
- // Unimplemented methods follow
-
- /**
- * Not implemented.
- *
- * A method in ServletConfig or ServletContext interface that is not
- * implemented and will throw <code>UnsuportedOperationException</code>
- * upon invocation
- */
- public ServletContext getContext(String s)
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletConfig or ServletContext interface that is not
- * implemented and will throw <code>UnsuportedOperationException</code>
- * upon invocation
- */
- public int getMajorVersion()
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletConfig or ServletContext interface that is not
- * implemented and will throw <code>UnsuportedOperationException</code>
- * upon invocation
- */
- public String getMimeType(String s)
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletConfig or ServletContext interface that is not
- * implemented and will throw <code>UnsuportedOperationException</code>
- * upon invocation
- */
- public int getMinorVersion()
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletConfig or ServletContext interface that is not
- * implemented and will throw <code>UnsuportedOperationException</code>
- * upon invocation
- */
- public RequestDispatcher getNamedDispatcher(String s)
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletConfig or ServletContext interface that is not
- * implemented and will throw <code>UnsuportedOperationException</code>
- * upon invocation
- */
- public RequestDispatcher getRequestDispatcher(String s)
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletContext (2.3) interface that is not implemented and
- * will throw <code>UnsuportedOperationException</code> upon invocation
- */
- public Set getResourcePaths(String s)
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletContext (2.3) interface that is not implemented and
- * will throw <code>UnsuportedOperationException</code> upon invocation
- */
- public String getServerInfo()
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletContext interface that is not implemented and will
- * throw <code>UnsuportedOperationException</code> upon invocation
- * @deprecated As of Java Servlet API 2.1, with no direct replacement.
- */
- public Servlet getServlet(String s)
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletContext interface that is not implemented and will
- * throw <code>UnsuportedOperationException</code> upon invocation
- * @deprecated As of Java Servlet API 2.1, with no replacement.
- */
- public Enumeration getServletNames()
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletContext interface that is not implemented and will
- * throw <code>UnsuportedOperationException</code> upon invocation
- * @deprecated As of Java Servlet API 2.0, with no replacement.
- */
- public Enumeration getServlets()
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletContext interface that is not implemented and will
- * throw <code>UnsuportedOperationException</code> upon invocation
- */
- public void removeAttribute(String s)
- {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Not implemented.
- *
- * A method in ServletContext interface that is not implemented and will
- * throw <code>UnsuportedOperationException</code> upon invocation
- */
- public void setAttribute(String s, Object o)
- {
- throw new UnsupportedOperationException();
+ initParams.put(CONFIGURATION_PATH_KEY, config);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org