You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by gk...@apache.org on 2015/08/06 09:56:30 UTC
svn commit: r960940 [7/29] - in
/websites/production/turbine/content/fulcrum/fulcrum-testcontainer: ./
announcements/ apidocs/ apidocs/org/apache/fulcrum/testcontainer/
apidocs/org/apache/fulcrum/testcontainer/class-use/ apidocs/resources/
apidocs/src-...
Added: websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/BaseUnit4Test.html
==============================================================================
--- websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/BaseUnit4Test.html (added)
+++ websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/BaseUnit4Test.html Thu Aug 6 07:56:28 2015
@@ -0,0 +1,247 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="de">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>package org.apache.fulcrum.testcontainer;<a name="line.1"></a>
+<span class="sourceLineNo">002</span><a name="line.2"></a>
+<span class="sourceLineNo">003</span>/*<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * or more contributor license agreements. See the NOTICE file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * distributed with this work for additional information<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * regarding copyright ownership. The ASF licenses this file<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * to you under the Apache License, Version 2.0 (the<a name="line.8"></a>
+<span class="sourceLineNo">009</span> * "License"); you may not use this file except in compliance<a name="line.9"></a>
+<span class="sourceLineNo">010</span> * with the License. You may obtain a copy of the License at<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.12"></a>
+<span class="sourceLineNo">013</span> *<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * Unless required by applicable law or agreed to in writing,<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * software distributed under the License is distributed on an<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.16"></a>
+<span class="sourceLineNo">017</span> * KIND, either express or implied. See the License for the<a name="line.17"></a>
+<span class="sourceLineNo">018</span> * specific language governing permissions and limitations<a name="line.18"></a>
+<span class="sourceLineNo">019</span> * under the License.<a name="line.19"></a>
+<span class="sourceLineNo">020</span> */<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import org.apache.avalon.framework.component.ComponentException;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.avalon.framework.logger.ConsoleLogger;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.junit.After;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>/**<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * Alternative Base class to {@link BaseUnitTest} for component tests. <a name="line.26"></a>
+<span class="sourceLineNo">027</span> * <a name="line.27"></a>
+<span class="sourceLineNo">028</span> * This version doesn't load the container until the<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * first request for a component. This allows the tester to populate the configurationFileName and<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * roleFileName, possible one per test.<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * <a name="line.31"></a>
+<span class="sourceLineNo">032</span> * JUnit 4 Version of BaseUnitTest class.<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * <a name="line.33"></a>
+<span class="sourceLineNo">034</span> * @see BaseUnitTest <a name="line.34"></a>
+<span class="sourceLineNo">035</span> *<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a><a name="line.36"></a>
+<span class="sourceLineNo">037</span> * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a><a name="line.37"></a>
+<span class="sourceLineNo">038</span> * @version $Id$<a name="line.38"></a>
+<span class="sourceLineNo">039</span> */<a name="line.39"></a>
+<span class="sourceLineNo">040</span>public class BaseUnit4Test<a name="line.40"></a>
+<span class="sourceLineNo">041</span>{<a name="line.41"></a>
+<span class="sourceLineNo">042</span> public static final String CONTAINER_ECM="CONTAINER_ECM";<a name="line.42"></a>
+<span class="sourceLineNo">043</span> public static final String CONTAINER_YAAFI="CONTAINER_YAAFI";<a name="line.43"></a>
+<span class="sourceLineNo">044</span><a name="line.44"></a>
+<span class="sourceLineNo">045</span> /** Key used in the context for defining the application root */<a name="line.45"></a>
+<span class="sourceLineNo">046</span> public static String COMPONENT_APP_ROOT = Container.COMPONENT_APP_ROOT;<a name="line.46"></a>
+<span class="sourceLineNo">047</span><a name="line.47"></a>
+<span class="sourceLineNo">048</span> /** Pick the default container to be Yaafi **/<a name="line.48"></a>
+<span class="sourceLineNo">049</span> public static String containerType = CONTAINER_YAAFI;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span> /** Use INFO for ConsoleLogger */<a name="line.51"></a>
+<span class="sourceLineNo">052</span> public static int defaultLogLevel = ConsoleLogger.LEVEL_INFO;<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span> /** Container for the components */<a name="line.54"></a>
+<span class="sourceLineNo">055</span> private Container container;<a name="line.55"></a>
+<span class="sourceLineNo">056</span> /** Setup our default configurationFileName */<a name="line.56"></a>
+<span class="sourceLineNo">057</span> private String configurationFileName = "src/test/TestComponentConfig.xml";<a name="line.57"></a>
+<span class="sourceLineNo">058</span> /** Setup our default roleFileName */<a name="line.58"></a>
+<span class="sourceLineNo">059</span> private String roleFileName = "src/test/TestRoleConfig.xml";<a name="line.59"></a>
+<span class="sourceLineNo">060</span> /** Setup our default parameterFileName */<a name="line.60"></a>
+<span class="sourceLineNo">061</span> private String parameterFileName = null;<a name="line.61"></a>
+<span class="sourceLineNo">062</span> /** Set the log level (only works for YAAFI container) */<a name="line.62"></a>
+<span class="sourceLineNo">063</span> private int logLevel = defaultLogLevel;<a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span> /**<a name="line.65"></a>
+<span class="sourceLineNo">066</span> * Gets the configuration file name for the container should use for this test. By default it<a name="line.66"></a>
+<span class="sourceLineNo">067</span> * is src/test/TestComponentConfig.<a name="line.67"></a>
+<span class="sourceLineNo">068</span> *<a name="line.68"></a>
+<span class="sourceLineNo">069</span> * @param configurationFileName<a name="line.69"></a>
+<span class="sourceLineNo">070</span> */<a name="line.70"></a>
+<span class="sourceLineNo">071</span> protected void setConfigurationFileName(String configurationFileName)<a name="line.71"></a>
+<span class="sourceLineNo">072</span> {<a name="line.72"></a>
+<span class="sourceLineNo">073</span> this.configurationFileName = configurationFileName;<a name="line.73"></a>
+<span class="sourceLineNo">074</span> }<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span> /**<a name="line.76"></a>
+<span class="sourceLineNo">077</span> * Override the role file name for the container should use for this test. By default it is<a name="line.77"></a>
+<span class="sourceLineNo">078</span> * src/test/TestRoleConfig.<a name="line.78"></a>
+<span class="sourceLineNo">079</span> *<a name="line.79"></a>
+<span class="sourceLineNo">080</span> * @param roleFileName<a name="line.80"></a>
+<span class="sourceLineNo">081</span> */<a name="line.81"></a>
+<span class="sourceLineNo">082</span> protected void setRoleFileName(String roleFileName)<a name="line.82"></a>
+<span class="sourceLineNo">083</span> {<a name="line.83"></a>
+<span class="sourceLineNo">084</span> this.roleFileName = roleFileName;<a name="line.84"></a>
+<span class="sourceLineNo">085</span> }<a name="line.85"></a>
+<span class="sourceLineNo">086</span><a name="line.86"></a>
+<span class="sourceLineNo">087</span> /**<a name="line.87"></a>
+<span class="sourceLineNo">088</span> * Set the console logger level,<a name="line.88"></a>
+<span class="sourceLineNo">089</span> */<a name="line.89"></a>
+<span class="sourceLineNo">090</span> protected void setLogLevel(int logLevel) {<a name="line.90"></a>
+<span class="sourceLineNo">091</span> this.logLevel = logLevel;<a name="line.91"></a>
+<span class="sourceLineNo">092</span> }<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span> /**<a name="line.94"></a>
+<span class="sourceLineNo">095</span> * Constructor for test.<a name="line.95"></a>
+<span class="sourceLineNo">096</span> *<a name="line.96"></a>
+<span class="sourceLineNo">097</span> * @param testName name of the test being executed<a name="line.97"></a>
+<span class="sourceLineNo">098</span> */<a name="line.98"></a>
+<span class="sourceLineNo">099</span> public BaseUnit4Test()<a name="line.99"></a>
+<span class="sourceLineNo">100</span> {<a name="line.100"></a>
+<span class="sourceLineNo">101</span> }<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span> /**<a name="line.103"></a>
+<span class="sourceLineNo">104</span> * Clean up after each test is run.<a name="line.104"></a>
+<span class="sourceLineNo">105</span> */<a name="line.105"></a>
+<span class="sourceLineNo">106</span> @After<a name="line.106"></a>
+<span class="sourceLineNo">107</span> public void tearDown()<a name="line.107"></a>
+<span class="sourceLineNo">108</span> {<a name="line.108"></a>
+<span class="sourceLineNo">109</span> if (container != null)<a name="line.109"></a>
+<span class="sourceLineNo">110</span> {<a name="line.110"></a>
+<span class="sourceLineNo">111</span> container.dispose();<a name="line.111"></a>
+<span class="sourceLineNo">112</span> }<a name="line.112"></a>
+<span class="sourceLineNo">113</span> container = null;<a name="line.113"></a>
+<span class="sourceLineNo">114</span> }<a name="line.114"></a>
+<span class="sourceLineNo">115</span> /**<a name="line.115"></a>
+<span class="sourceLineNo">116</span> * Gets the configuration file name for the container should use for this test.<a name="line.116"></a>
+<span class="sourceLineNo">117</span> *<a name="line.117"></a>
+<span class="sourceLineNo">118</span> * @return The filename of the configuration file<a name="line.118"></a>
+<span class="sourceLineNo">119</span> */<a name="line.119"></a>
+<span class="sourceLineNo">120</span> protected String getConfigurationFileName()<a name="line.120"></a>
+<span class="sourceLineNo">121</span> {<a name="line.121"></a>
+<span class="sourceLineNo">122</span> return configurationFileName;<a name="line.122"></a>
+<span class="sourceLineNo">123</span> }<a name="line.123"></a>
+<span class="sourceLineNo">124</span> /**<a name="line.124"></a>
+<span class="sourceLineNo">125</span> * Gets the role file name for the container should use for this test.<a name="line.125"></a>
+<span class="sourceLineNo">126</span> *<a name="line.126"></a>
+<span class="sourceLineNo">127</span> * @return The filename of the role configuration file<a name="line.127"></a>
+<span class="sourceLineNo">128</span> */<a name="line.128"></a>
+<span class="sourceLineNo">129</span> protected String getRoleFileName()<a name="line.129"></a>
+<span class="sourceLineNo">130</span> {<a name="line.130"></a>
+<span class="sourceLineNo">131</span> return roleFileName;<a name="line.131"></a>
+<span class="sourceLineNo">132</span> }<a name="line.132"></a>
+<span class="sourceLineNo">133</span> /**<a name="line.133"></a>
+<span class="sourceLineNo">134</span> * Gets the parameter file name for the container should use for this test.<a name="line.134"></a>
+<span class="sourceLineNo">135</span> *<a name="line.135"></a>
+<span class="sourceLineNo">136</span> * @return The filename of the role configuration file<a name="line.136"></a>
+<span class="sourceLineNo">137</span> */<a name="line.137"></a>
+<span class="sourceLineNo">138</span> protected String getParameterFileName()<a name="line.138"></a>
+<span class="sourceLineNo">139</span> {<a name="line.139"></a>
+<span class="sourceLineNo">140</span> return parameterFileName;<a name="line.140"></a>
+<span class="sourceLineNo">141</span> }<a name="line.141"></a>
+<span class="sourceLineNo">142</span> /**<a name="line.142"></a>
+<span class="sourceLineNo">143</span> * Returns an instance of the named component. Starts the container if it hasn't been started.<a name="line.143"></a>
+<span class="sourceLineNo">144</span> *<a name="line.144"></a>
+<span class="sourceLineNo">145</span> * @param roleName Name of the role the component fills.<a name="line.145"></a>
+<span class="sourceLineNo">146</span> * @throws ComponentException generic exception<a name="line.146"></a>
+<span class="sourceLineNo">147</span> */<a name="line.147"></a>
+<span class="sourceLineNo">148</span> protected Object lookup(String roleName) throws ComponentException<a name="line.148"></a>
+<span class="sourceLineNo">149</span> {<a name="line.149"></a>
+<span class="sourceLineNo">150</span> if (container == null)<a name="line.150"></a>
+<span class="sourceLineNo">151</span> {<a name="line.151"></a>
+<span class="sourceLineNo">152</span> if(containerType.equals(CONTAINER_ECM)){<a name="line.152"></a>
+<span class="sourceLineNo">153</span> container = new ECMContainer();<a name="line.153"></a>
+<span class="sourceLineNo">154</span> }<a name="line.154"></a>
+<span class="sourceLineNo">155</span> else {<a name="line.155"></a>
+<span class="sourceLineNo">156</span> container = new YAAFIContainer(logLevel);<a name="line.156"></a>
+<span class="sourceLineNo">157</span> }<a name="line.157"></a>
+<span class="sourceLineNo">158</span> container.startup(getConfigurationFileName(), getRoleFileName(),getParameterFileName());<a name="line.158"></a>
+<span class="sourceLineNo">159</span> }<a name="line.159"></a>
+<span class="sourceLineNo">160</span> return container.lookup(roleName);<a name="line.160"></a>
+<span class="sourceLineNo">161</span> }<a name="line.161"></a>
+<span class="sourceLineNo">162</span><a name="line.162"></a>
+<span class="sourceLineNo">163</span> /**<a name="line.163"></a>
+<span class="sourceLineNo">164</span> * Releases the component<a name="line.164"></a>
+<span class="sourceLineNo">165</span> *<a name="line.165"></a>
+<span class="sourceLineNo">166</span> * @param component<a name="line.166"></a>
+<span class="sourceLineNo">167</span> */<a name="line.167"></a>
+<span class="sourceLineNo">168</span> protected void release(Object component)<a name="line.168"></a>
+<span class="sourceLineNo">169</span> {<a name="line.169"></a>
+<span class="sourceLineNo">170</span> if (container != null)<a name="line.170"></a>
+<span class="sourceLineNo">171</span> {<a name="line.171"></a>
+<span class="sourceLineNo">172</span> container.release(component);<a name="line.172"></a>
+<span class="sourceLineNo">173</span> }<a name="line.173"></a>
+<span class="sourceLineNo">174</span> }<a name="line.174"></a>
+<span class="sourceLineNo">175</span>}<a name="line.175"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file
Propchange: websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/BaseUnit4Test.html
------------------------------------------------------------------------------
svn:eol-style = native
Modified: websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/BaseUnitTest.html
==============================================================================
--- websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/BaseUnitTest.html (original)
+++ websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/BaseUnitTest.html Thu Aug 6 07:56:28 2015
@@ -1,230 +1,255 @@
-<HTML>
-<BODY BGCOLOR="white">
-<PRE>
-<FONT color="green">001</FONT> package org.apache.fulcrum.testcontainer;<a name="line.1"></a>
-<FONT color="green">002</FONT> /*<a name="line.2"></a>
-<FONT color="green">003</FONT> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.3"></a>
-<FONT color="green">004</FONT> * or more contributor license agreements. See the NOTICE file<a name="line.4"></a>
-<FONT color="green">005</FONT> * distributed with this work for additional information<a name="line.5"></a>
-<FONT color="green">006</FONT> * regarding copyright ownership. The ASF licenses this file<a name="line.6"></a>
-<FONT color="green">007</FONT> * to you under the Apache License, Version 2.0 (the<a name="line.7"></a>
-<FONT color="green">008</FONT> * "License"); you may not use this file except in compliance<a name="line.8"></a>
-<FONT color="green">009</FONT> * with the License. You may obtain a copy of the License at<a name="line.9"></a>
-<FONT color="green">010</FONT> *<a name="line.10"></a>
-<FONT color="green">011</FONT> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.11"></a>
-<FONT color="green">012</FONT> *<a name="line.12"></a>
-<FONT color="green">013</FONT> * Unless required by applicable law or agreed to in writing,<a name="line.13"></a>
-<FONT color="green">014</FONT> * software distributed under the License is distributed on an<a name="line.14"></a>
-<FONT color="green">015</FONT> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.15"></a>
-<FONT color="green">016</FONT> * KIND, either express or implied. See the License for the<a name="line.16"></a>
-<FONT color="green">017</FONT> * specific language governing permissions and limitations<a name="line.17"></a>
-<FONT color="green">018</FONT> * under the License.<a name="line.18"></a>
-<FONT color="green">019</FONT> */<a name="line.19"></a>
-<FONT color="green">020</FONT> import junit.framework.TestCase;<a name="line.20"></a>
-<FONT color="green">021</FONT> <a name="line.21"></a>
-<FONT color="green">022</FONT> import org.apache.avalon.framework.component.ComponentException;<a name="line.22"></a>
-<FONT color="green">023</FONT> /**<a name="line.23"></a>
-<FONT color="green">024</FONT> * Base class for unit tests for components. This version doesn't load the container until the<a name="line.24"></a>
-<FONT color="green">025</FONT> * first request for a component. This allows the tester to populate the configurationFileName and<a name="line.25"></a>
-<FONT color="green">026</FONT> * roleFileName, possible one per test.<a name="line.26"></a>
-<FONT color="green">027</FONT> *<a name="line.27"></a>
-<FONT color="green">028</FONT> * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a><a name="line.28"></a>
-<FONT color="green">029</FONT> * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a><a name="line.29"></a>
-<FONT color="green">030</FONT> * @version $Id: BaseUnitTest.java 535465 2007-05-05 06:58:06Z tv $<a name="line.30"></a>
-<FONT color="green">031</FONT> */<a name="line.31"></a>
-<FONT color="green">032</FONT> public class BaseUnitTest extends TestCase<a name="line.32"></a>
-<FONT color="green">033</FONT> {<a name="line.33"></a>
-<FONT color="green">034</FONT> <a name="line.34"></a>
-<FONT color="green">035</FONT> public static final String CONTAINER_ECM="CONTAINER_ECM";<a name="line.35"></a>
-<FONT color="green">036</FONT> public static final String CONTAINER_YAAFI="CONTAINER_YAAFI";<a name="line.36"></a>
-<FONT color="green">037</FONT> /** Key used in the context for defining the application root */<a name="line.37"></a>
-<FONT color="green">038</FONT> public static String COMPONENT_APP_ROOT = Container.COMPONENT_APP_ROOT;<a name="line.38"></a>
-<FONT color="green">039</FONT> <a name="line.39"></a>
-<FONT color="green">040</FONT> /** Pick the default container to be Yaafi **/<a name="line.40"></a>
-<FONT color="green">041</FONT> public static String containerType = CONTAINER_YAAFI;<a name="line.41"></a>
-<FONT color="green">042</FONT> /** Container for the components */<a name="line.42"></a>
-<FONT color="green">043</FONT> private Container container;<a name="line.43"></a>
-<FONT color="green">044</FONT> /** Setup our default configurationFileName */<a name="line.44"></a>
-<FONT color="green">045</FONT> private String configurationFileName = "src/test/TestComponentConfig.xml";<a name="line.45"></a>
-<FONT color="green">046</FONT> /** Setup our default roleFileName */<a name="line.46"></a>
-<FONT color="green">047</FONT> private String roleFileName = "src/test/TestRoleConfig.xml";<a name="line.47"></a>
-<FONT color="green">048</FONT> /** Setup our default parameterFileName */<a name="line.48"></a>
-<FONT color="green">049</FONT> private String parameterFileName = null;<a name="line.49"></a>
-<FONT color="green">050</FONT> <a name="line.50"></a>
-<FONT color="green">051</FONT> /**<a name="line.51"></a>
-<FONT color="green">052</FONT> * Gets the configuration file name for the container should use for this test. By default it<a name="line.52"></a>
-<FONT color="green">053</FONT> * is src/test/TestComponentConfig.<a name="line.53"></a>
-<FONT color="green">054</FONT> *<a name="line.54"></a>
-<FONT color="green">055</FONT> * @param configurationFileName<a name="line.55"></a>
-<FONT color="green">056</FONT> */<a name="line.56"></a>
-<FONT color="green">057</FONT> protected void setConfigurationFileName(String configurationFileName)<a name="line.57"></a>
-<FONT color="green">058</FONT> {<a name="line.58"></a>
-<FONT color="green">059</FONT> this.configurationFileName = configurationFileName;<a name="line.59"></a>
-<FONT color="green">060</FONT> }<a name="line.60"></a>
-<FONT color="green">061</FONT> <a name="line.61"></a>
-<FONT color="green">062</FONT> /**<a name="line.62"></a>
-<FONT color="green">063</FONT> * Override the role file name for the container should use for this test. By default it is<a name="line.63"></a>
-<FONT color="green">064</FONT> * src/test/TestRoleConfig.<a name="line.64"></a>
-<FONT color="green">065</FONT> *<a name="line.65"></a>
-<FONT color="green">066</FONT> * @param roleFileName<a name="line.66"></a>
-<FONT color="green">067</FONT> */<a name="line.67"></a>
-<FONT color="green">068</FONT> protected void setRoleFileName(String roleFileName)<a name="line.68"></a>
-<FONT color="green">069</FONT> {<a name="line.69"></a>
-<FONT color="green">070</FONT> this.roleFileName = roleFileName;<a name="line.70"></a>
-<FONT color="green">071</FONT> }<a name="line.71"></a>
-<FONT color="green">072</FONT> <a name="line.72"></a>
-<FONT color="green">073</FONT> /**<a name="line.73"></a>
-<FONT color="green">074</FONT> * Constructor for test.<a name="line.74"></a>
-<FONT color="green">075</FONT> *<a name="line.75"></a>
-<FONT color="green">076</FONT> * @param testName name of the test being executed<a name="line.76"></a>
-<FONT color="green">077</FONT> */<a name="line.77"></a>
-<FONT color="green">078</FONT> public BaseUnitTest(String testName)<a name="line.78"></a>
-<FONT color="green">079</FONT> {<a name="line.79"></a>
-<FONT color="green">080</FONT> super(testName);<a name="line.80"></a>
-<FONT color="green">081</FONT> }<a name="line.81"></a>
-<FONT color="green">082</FONT> <a name="line.82"></a>
-<FONT color="green">083</FONT> /**<a name="line.83"></a>
-<FONT color="green">084</FONT> * Clean up after each test is run.<a name="line.84"></a>
-<FONT color="green">085</FONT> */<a name="line.85"></a>
-<FONT color="green">086</FONT> protected void tearDown()<a name="line.86"></a>
-<FONT color="green">087</FONT> {<a name="line.87"></a>
-<FONT color="green">088</FONT> if (container != null)<a name="line.88"></a>
-<FONT color="green">089</FONT> {<a name="line.89"></a>
-<FONT color="green">090</FONT> container.dispose();<a name="line.90"></a>
-<FONT color="green">091</FONT> }<a name="line.91"></a>
-<FONT color="green">092</FONT> container = null;<a name="line.92"></a>
-<FONT color="green">093</FONT> }<a name="line.93"></a>
-<FONT color="green">094</FONT> /**<a name="line.94"></a>
-<FONT color="green">095</FONT> * Gets the configuration file name for the container should use for this test.<a name="line.95"></a>
-<FONT color="green">096</FONT> *<a name="line.96"></a>
-<FONT color="green">097</FONT> * @return The filename of the configuration file<a name="line.97"></a>
-<FONT color="green">098</FONT> */<a name="line.98"></a>
-<FONT color="green">099</FONT> protected String getConfigurationFileName()<a name="line.99"></a>
-<FONT color="green">100</FONT> {<a name="line.100"></a>
-<FONT color="green">101</FONT> return configurationFileName;<a name="line.101"></a>
-<FONT color="green">102</FONT> }<a name="line.102"></a>
-<FONT color="green">103</FONT> /**<a name="line.103"></a>
-<FONT color="green">104</FONT> * Gets the role file name for the container should use for this test.<a name="line.104"></a>
-<FONT color="green">105</FONT> *<a name="line.105"></a>
-<FONT color="green">106</FONT> * @return The filename of the role configuration file<a name="line.106"></a>
-<FONT color="green">107</FONT> */<a name="line.107"></a>
-<FONT color="green">108</FONT> protected String getRoleFileName()<a name="line.108"></a>
-<FONT color="green">109</FONT> {<a name="line.109"></a>
-<FONT color="green">110</FONT> return roleFileName;<a name="line.110"></a>
-<FONT color="green">111</FONT> }<a name="line.111"></a>
-<FONT color="green">112</FONT> /**<a name="line.112"></a>
-<FONT color="green">113</FONT> * Gets the parameter file name for the container should use for this test.<a name="line.113"></a>
-<FONT color="green">114</FONT> *<a name="line.114"></a>
-<FONT color="green">115</FONT> * @return The filename of the role configuration file<a name="line.115"></a>
-<FONT color="green">116</FONT> */<a name="line.116"></a>
-<FONT color="green">117</FONT> protected String getParameterFileName()<a name="line.117"></a>
-<FONT color="green">118</FONT> {<a name="line.118"></a>
-<FONT color="green">119</FONT> return parameterFileName;<a name="line.119"></a>
-<FONT color="green">120</FONT> }<a name="line.120"></a>
-<FONT color="green">121</FONT> /**<a name="line.121"></a>
-<FONT color="green">122</FONT> * Returns an instance of the named component. Starts the container if it hasn't been started.<a name="line.122"></a>
-<FONT color="green">123</FONT> *<a name="line.123"></a>
-<FONT color="green">124</FONT> * @param roleName Name of the role the component fills.<a name="line.124"></a>
-<FONT color="green">125</FONT> * @throws ComponentException generic exception<a name="line.125"></a>
-<FONT color="green">126</FONT> */<a name="line.126"></a>
-<FONT color="green">127</FONT> protected Object lookup(String roleName) throws ComponentException<a name="line.127"></a>
-<FONT color="green">128</FONT> {<a name="line.128"></a>
-<FONT color="green">129</FONT> if (container == null)<a name="line.129"></a>
-<FONT color="green">130</FONT> {<a name="line.130"></a>
-<FONT color="green">131</FONT> if(containerType.equals(CONTAINER_ECM)){<a name="line.131"></a>
-<FONT color="green">132</FONT> container = new ECMContainer();<a name="line.132"></a>
-<FONT color="green">133</FONT> }<a name="line.133"></a>
-<FONT color="green">134</FONT> else {<a name="line.134"></a>
-<FONT color="green">135</FONT> container = new YAAFIContainer();<a name="line.135"></a>
-<FONT color="green">136</FONT> }<a name="line.136"></a>
-<FONT color="green">137</FONT> container.startup(getConfigurationFileName(), getRoleFileName(),getParameterFileName());<a name="line.137"></a>
-<FONT color="green">138</FONT> }<a name="line.138"></a>
-<FONT color="green">139</FONT> return container.lookup(roleName);<a name="line.139"></a>
-<FONT color="green">140</FONT> }<a name="line.140"></a>
-<FONT color="green">141</FONT> <a name="line.141"></a>
-<FONT color="green">142</FONT> /**<a name="line.142"></a>
-<FONT color="green">143</FONT> * Helper method for converting to and from Merlin Unit TestCase.<a name="line.143"></a>
-<FONT color="green">144</FONT> * @param roleName<a name="line.144"></a>
-<FONT color="green">145</FONT> * @return<a name="line.145"></a>
-<FONT color="green">146</FONT> * @throws ComponentException<a name="line.146"></a>
-<FONT color="green">147</FONT> */<a name="line.147"></a>
-<FONT color="green">148</FONT> protected Object resolve(String roleName) throws ComponentException<a name="line.148"></a>
-<FONT color="green">149</FONT> {<a name="line.149"></a>
-<FONT color="green">150</FONT> return lookup(roleName);<a name="line.150"></a>
-<FONT color="green">151</FONT> }<a name="line.151"></a>
-<FONT color="green">152</FONT> /**<a name="line.152"></a>
-<FONT color="green">153</FONT> * Releases the component<a name="line.153"></a>
-<FONT color="green">154</FONT> *<a name="line.154"></a>
-<FONT color="green">155</FONT> * @param component<a name="line.155"></a>
-<FONT color="green">156</FONT> */<a name="line.156"></a>
-<FONT color="green">157</FONT> protected void release(Object component)<a name="line.157"></a>
-<FONT color="green">158</FONT> {<a name="line.158"></a>
-<FONT color="green">159</FONT> if (container != null)<a name="line.159"></a>
-<FONT color="green">160</FONT> {<a name="line.160"></a>
-<FONT color="green">161</FONT> container.release(component);<a name="line.161"></a>
-<FONT color="green">162</FONT> }<a name="line.162"></a>
-<FONT color="green">163</FONT> }<a name="line.163"></a>
-<FONT color="green">164</FONT> }<a name="line.164"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</PRE>
-</BODY>
-</HTML>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="de">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>package org.apache.fulcrum.testcontainer;<a name="line.1"></a>
+<span class="sourceLineNo">002</span>/*<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * or more contributor license agreements. See the NOTICE file<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * distributed with this work for additional information<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * regarding copyright ownership. The ASF licenses this file<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * to you under the Apache License, Version 2.0 (the<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * "License"); you may not use this file except in compliance<a name="line.8"></a>
+<span class="sourceLineNo">009</span> * with the License. You may obtain a copy of the License at<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *<a name="line.10"></a>
+<span class="sourceLineNo">011</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.11"></a>
+<span class="sourceLineNo">012</span> *<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * Unless required by applicable law or agreed to in writing,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * software distributed under the License is distributed on an<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * KIND, either express or implied. See the License for the<a name="line.16"></a>
+<span class="sourceLineNo">017</span> * specific language governing permissions and limitations<a name="line.17"></a>
+<span class="sourceLineNo">018</span> * under the License.<a name="line.18"></a>
+<span class="sourceLineNo">019</span> */<a name="line.19"></a>
+<span class="sourceLineNo">020</span>import junit.framework.TestCase;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.avalon.framework.component.ComponentException;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.avalon.framework.logger.ConsoleLogger;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>/**<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * Base class for unit tests for components. This version doesn't load the container until the<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * first request for a component. This allows the tester to populate the configurationFileName and<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * roleFileName, possible one per test.<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * <a name="line.29"></a>
+<span class="sourceLineNo">030</span> * This class uses JUnit 3.<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * <a name="line.31"></a>
+<span class="sourceLineNo">032</span> * @see BaseUnit4Test<a name="line.32"></a>
+<span class="sourceLineNo">033</span> *<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a><a name="line.34"></a>
+<span class="sourceLineNo">035</span> * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a><a name="line.35"></a>
+<span class="sourceLineNo">036</span> * @version $Id: BaseUnitTest.java 1694409 2015-08-06 06:34:03Z gk $<a name="line.36"></a>
+<span class="sourceLineNo">037</span> */<a name="line.37"></a>
+<span class="sourceLineNo">038</span>public class BaseUnitTest extends TestCase<a name="line.38"></a>
+<span class="sourceLineNo">039</span>{<a name="line.39"></a>
+<span class="sourceLineNo">040</span> public static final String CONTAINER_ECM="CONTAINER_ECM";<a name="line.40"></a>
+<span class="sourceLineNo">041</span> public static final String CONTAINER_YAAFI="CONTAINER_YAAFI";<a name="line.41"></a>
+<span class="sourceLineNo">042</span><a name="line.42"></a>
+<span class="sourceLineNo">043</span> /** Key used in the context for defining the application root */<a name="line.43"></a>
+<span class="sourceLineNo">044</span> public static String COMPONENT_APP_ROOT = Container.COMPONENT_APP_ROOT;<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span> /** Pick the default container to be Yaafi **/<a name="line.46"></a>
+<span class="sourceLineNo">047</span> public static String containerType = CONTAINER_YAAFI;<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span> /** Use INFO for ConsoleLogger */<a name="line.49"></a>
+<span class="sourceLineNo">050</span> public static int defaultLogLevel = ConsoleLogger.LEVEL_INFO;<a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span> /** Container for the components */<a name="line.52"></a>
+<span class="sourceLineNo">053</span> private Container container;<a name="line.53"></a>
+<span class="sourceLineNo">054</span> /** Setup our default configurationFileName */<a name="line.54"></a>
+<span class="sourceLineNo">055</span> private String configurationFileName = "src/test/TestComponentConfig.xml";<a name="line.55"></a>
+<span class="sourceLineNo">056</span> /** Setup our default roleFileName */<a name="line.56"></a>
+<span class="sourceLineNo">057</span> private String roleFileName = "src/test/TestRoleConfig.xml";<a name="line.57"></a>
+<span class="sourceLineNo">058</span> /** Setup our default parameterFileName */<a name="line.58"></a>
+<span class="sourceLineNo">059</span> private String parameterFileName = null;<a name="line.59"></a>
+<span class="sourceLineNo">060</span> /** Set the log level (only works for YAAFI container) */<a name="line.60"></a>
+<span class="sourceLineNo">061</span> private int logLevel = defaultLogLevel;<a name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span> /**<a name="line.63"></a>
+<span class="sourceLineNo">064</span> * Gets the configuration file name for the container should use for this test. By default it<a name="line.64"></a>
+<span class="sourceLineNo">065</span> * is src/test/TestComponentConfig.<a name="line.65"></a>
+<span class="sourceLineNo">066</span> *<a name="line.66"></a>
+<span class="sourceLineNo">067</span> * @param configurationFileName<a name="line.67"></a>
+<span class="sourceLineNo">068</span> */<a name="line.68"></a>
+<span class="sourceLineNo">069</span> protected void setConfigurationFileName(String configurationFileName)<a name="line.69"></a>
+<span class="sourceLineNo">070</span> {<a name="line.70"></a>
+<span class="sourceLineNo">071</span> this.configurationFileName = configurationFileName;<a name="line.71"></a>
+<span class="sourceLineNo">072</span> }<a name="line.72"></a>
+<span class="sourceLineNo">073</span><a name="line.73"></a>
+<span class="sourceLineNo">074</span> /**<a name="line.74"></a>
+<span class="sourceLineNo">075</span> * Override the role file name for the container should use for this test. By default it is<a name="line.75"></a>
+<span class="sourceLineNo">076</span> * src/test/TestRoleConfig.<a name="line.76"></a>
+<span class="sourceLineNo">077</span> *<a name="line.77"></a>
+<span class="sourceLineNo">078</span> * @param roleFileName<a name="line.78"></a>
+<span class="sourceLineNo">079</span> */<a name="line.79"></a>
+<span class="sourceLineNo">080</span> protected void setRoleFileName(String roleFileName)<a name="line.80"></a>
+<span class="sourceLineNo">081</span> {<a name="line.81"></a>
+<span class="sourceLineNo">082</span> this.roleFileName = roleFileName;<a name="line.82"></a>
+<span class="sourceLineNo">083</span> }<a name="line.83"></a>
+<span class="sourceLineNo">084</span><a name="line.84"></a>
+<span class="sourceLineNo">085</span> /**<a name="line.85"></a>
+<span class="sourceLineNo">086</span> * Set the console logger level,<a name="line.86"></a>
+<span class="sourceLineNo">087</span> */<a name="line.87"></a>
+<span class="sourceLineNo">088</span> protected void setLogLevel(int logLevel) {<a name="line.88"></a>
+<span class="sourceLineNo">089</span> this.logLevel = logLevel;<a name="line.89"></a>
+<span class="sourceLineNo">090</span> }<a name="line.90"></a>
+<span class="sourceLineNo">091</span><a name="line.91"></a>
+<span class="sourceLineNo">092</span> /**<a name="line.92"></a>
+<span class="sourceLineNo">093</span> * Constructor for test.<a name="line.93"></a>
+<span class="sourceLineNo">094</span> *<a name="line.94"></a>
+<span class="sourceLineNo">095</span> * @param testName name of the test being executed<a name="line.95"></a>
+<span class="sourceLineNo">096</span> */<a name="line.96"></a>
+<span class="sourceLineNo">097</span> public BaseUnitTest(String testName)<a name="line.97"></a>
+<span class="sourceLineNo">098</span> {<a name="line.98"></a>
+<span class="sourceLineNo">099</span> super(testName);<a name="line.99"></a>
+<span class="sourceLineNo">100</span> }<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span> /**<a name="line.102"></a>
+<span class="sourceLineNo">103</span> * Clean up after each test is run.<a name="line.103"></a>
+<span class="sourceLineNo">104</span> */<a name="line.104"></a>
+<span class="sourceLineNo">105</span> protected void tearDown()<a name="line.105"></a>
+<span class="sourceLineNo">106</span> {<a name="line.106"></a>
+<span class="sourceLineNo">107</span> if (container != null)<a name="line.107"></a>
+<span class="sourceLineNo">108</span> {<a name="line.108"></a>
+<span class="sourceLineNo">109</span> container.dispose();<a name="line.109"></a>
+<span class="sourceLineNo">110</span> }<a name="line.110"></a>
+<span class="sourceLineNo">111</span> container = null;<a name="line.111"></a>
+<span class="sourceLineNo">112</span> }<a name="line.112"></a>
+<span class="sourceLineNo">113</span> /**<a name="line.113"></a>
+<span class="sourceLineNo">114</span> * Gets the configuration file name for the container should use for this test.<a name="line.114"></a>
+<span class="sourceLineNo">115</span> *<a name="line.115"></a>
+<span class="sourceLineNo">116</span> * @return The filename of the configuration file<a name="line.116"></a>
+<span class="sourceLineNo">117</span> */<a name="line.117"></a>
+<span class="sourceLineNo">118</span> protected String getConfigurationFileName()<a name="line.118"></a>
+<span class="sourceLineNo">119</span> {<a name="line.119"></a>
+<span class="sourceLineNo">120</span> return configurationFileName;<a name="line.120"></a>
+<span class="sourceLineNo">121</span> }<a name="line.121"></a>
+<span class="sourceLineNo">122</span> /**<a name="line.122"></a>
+<span class="sourceLineNo">123</span> * Gets the role file name for the container should use for this test.<a name="line.123"></a>
+<span class="sourceLineNo">124</span> *<a name="line.124"></a>
+<span class="sourceLineNo">125</span> * @return The filename of the role configuration file<a name="line.125"></a>
+<span class="sourceLineNo">126</span> */<a name="line.126"></a>
+<span class="sourceLineNo">127</span> protected String getRoleFileName()<a name="line.127"></a>
+<span class="sourceLineNo">128</span> {<a name="line.128"></a>
+<span class="sourceLineNo">129</span> return roleFileName;<a name="line.129"></a>
+<span class="sourceLineNo">130</span> }<a name="line.130"></a>
+<span class="sourceLineNo">131</span> /**<a name="line.131"></a>
+<span class="sourceLineNo">132</span> * Gets the parameter file name for the container should use for this test.<a name="line.132"></a>
+<span class="sourceLineNo">133</span> *<a name="line.133"></a>
+<span class="sourceLineNo">134</span> * @return The filename of the role configuration file<a name="line.134"></a>
+<span class="sourceLineNo">135</span> */<a name="line.135"></a>
+<span class="sourceLineNo">136</span> protected String getParameterFileName()<a name="line.136"></a>
+<span class="sourceLineNo">137</span> {<a name="line.137"></a>
+<span class="sourceLineNo">138</span> return parameterFileName;<a name="line.138"></a>
+<span class="sourceLineNo">139</span> }<a name="line.139"></a>
+<span class="sourceLineNo">140</span> /**<a name="line.140"></a>
+<span class="sourceLineNo">141</span> * Returns an instance of the named component. Starts the container if it hasn't been started.<a name="line.141"></a>
+<span class="sourceLineNo">142</span> *<a name="line.142"></a>
+<span class="sourceLineNo">143</span> * @param roleName Name of the role the component fills.<a name="line.143"></a>
+<span class="sourceLineNo">144</span> * @throws ComponentException generic exception<a name="line.144"></a>
+<span class="sourceLineNo">145</span> */<a name="line.145"></a>
+<span class="sourceLineNo">146</span> protected Object lookup(String roleName) throws ComponentException<a name="line.146"></a>
+<span class="sourceLineNo">147</span> {<a name="line.147"></a>
+<span class="sourceLineNo">148</span> if (container == null)<a name="line.148"></a>
+<span class="sourceLineNo">149</span> {<a name="line.149"></a>
+<span class="sourceLineNo">150</span> if(containerType.equals(CONTAINER_ECM)){<a name="line.150"></a>
+<span class="sourceLineNo">151</span> container = new ECMContainer();<a name="line.151"></a>
+<span class="sourceLineNo">152</span> }<a name="line.152"></a>
+<span class="sourceLineNo">153</span> else {<a name="line.153"></a>
+<span class="sourceLineNo">154</span> container = new YAAFIContainer(logLevel);<a name="line.154"></a>
+<span class="sourceLineNo">155</span> }<a name="line.155"></a>
+<span class="sourceLineNo">156</span> container.startup(getConfigurationFileName(), getRoleFileName(),getParameterFileName());<a name="line.156"></a>
+<span class="sourceLineNo">157</span> }<a name="line.157"></a>
+<span class="sourceLineNo">158</span> return container.lookup(roleName);<a name="line.158"></a>
+<span class="sourceLineNo">159</span> }<a name="line.159"></a>
+<span class="sourceLineNo">160</span><a name="line.160"></a>
+<span class="sourceLineNo">161</span> /**<a name="line.161"></a>
+<span class="sourceLineNo">162</span> * Helper method for converting to and from Merlin Unit TestCase.<a name="line.162"></a>
+<span class="sourceLineNo">163</span> * @param roleName<a name="line.163"></a>
+<span class="sourceLineNo">164</span> * @return<a name="line.164"></a>
+<span class="sourceLineNo">165</span> * @throws ComponentException<a name="line.165"></a>
+<span class="sourceLineNo">166</span> */<a name="line.166"></a>
+<span class="sourceLineNo">167</span> protected Object resolve(String roleName) throws ComponentException<a name="line.167"></a>
+<span class="sourceLineNo">168</span> {<a name="line.168"></a>
+<span class="sourceLineNo">169</span> return lookup(roleName);<a name="line.169"></a>
+<span class="sourceLineNo">170</span> }<a name="line.170"></a>
+<span class="sourceLineNo">171</span> /**<a name="line.171"></a>
+<span class="sourceLineNo">172</span> * Releases the component<a name="line.172"></a>
+<span class="sourceLineNo">173</span> *<a name="line.173"></a>
+<span class="sourceLineNo">174</span> * @param component<a name="line.174"></a>
+<span class="sourceLineNo">175</span> */<a name="line.175"></a>
+<span class="sourceLineNo">176</span> protected void release(Object component)<a name="line.176"></a>
+<span class="sourceLineNo">177</span> {<a name="line.177"></a>
+<span class="sourceLineNo">178</span> if (container != null)<a name="line.178"></a>
+<span class="sourceLineNo">179</span> {<a name="line.179"></a>
+<span class="sourceLineNo">180</span> container.release(component);<a name="line.180"></a>
+<span class="sourceLineNo">181</span> }<a name="line.181"></a>
+<span class="sourceLineNo">182</span> }<a name="line.182"></a>
+<span class="sourceLineNo">183</span>}<a name="line.183"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file
Modified: websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/Container.html
==============================================================================
--- websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/Container.html (original)
+++ websites/production/turbine/content/fulcrum/fulcrum-testcontainer/apidocs/src-html/org/apache/fulcrum/testcontainer/Container.html Thu Aug 6 07:56:28 2015
@@ -1,115 +1,121 @@
-<HTML>
-<BODY BGCOLOR="white">
-<PRE>
-<FONT color="green">001</FONT> package org.apache.fulcrum.testcontainer;<a name="line.1"></a>
-<FONT color="green">002</FONT> <a name="line.2"></a>
-<FONT color="green">003</FONT> /*<a name="line.3"></a>
-<FONT color="green">004</FONT> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.4"></a>
-<FONT color="green">005</FONT> * or more contributor license agreements. See the NOTICE file<a name="line.5"></a>
-<FONT color="green">006</FONT> * distributed with this work for additional information<a name="line.6"></a>
-<FONT color="green">007</FONT> * regarding copyright ownership. The ASF licenses this file<a name="line.7"></a>
-<FONT color="green">008</FONT> * to you under the Apache License, Version 2.0 (the<a name="line.8"></a>
-<FONT color="green">009</FONT> * "License"); you may not use this file except in compliance<a name="line.9"></a>
-<FONT color="green">010</FONT> * with the License. You may obtain a copy of the License at<a name="line.10"></a>
-<FONT color="green">011</FONT> *<a name="line.11"></a>
-<FONT color="green">012</FONT> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.12"></a>
-<FONT color="green">013</FONT> *<a name="line.13"></a>
-<FONT color="green">014</FONT> * Unless required by applicable law or agreed to in writing,<a name="line.14"></a>
-<FONT color="green">015</FONT> * software distributed under the License is distributed on an<a name="line.15"></a>
-<FONT color="green">016</FONT> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.16"></a>
-<FONT color="green">017</FONT> * KIND, either express or implied. See the License for the<a name="line.17"></a>
-<FONT color="green">018</FONT> * specific language governing permissions and limitations<a name="line.18"></a>
-<FONT color="green">019</FONT> * under the License.<a name="line.19"></a>
-<FONT color="green">020</FONT> */<a name="line.20"></a>
-<FONT color="green">021</FONT> <a name="line.21"></a>
-<FONT color="green">022</FONT> import org.apache.avalon.framework.activity.Disposable;<a name="line.22"></a>
-<FONT color="green">023</FONT> import org.apache.avalon.framework.activity.Initializable;<a name="line.23"></a>
-<FONT color="green">024</FONT> import org.apache.avalon.framework.component.ComponentException;<a name="line.24"></a>
-<FONT color="green">025</FONT> <a name="line.25"></a>
-<FONT color="green">026</FONT> /**<a name="line.26"></a>
-<FONT color="green">027</FONT> * This is a simple interface around the ECM and Yaafi containers<a name="line.27"></a>
-<FONT color="green">028</FONT> *<a name="line.28"></a>
-<FONT color="green">029</FONT> * @author <a href="mailto:epugh at opensourceconnections.com">Eric Pugh</a><a name="line.29"></a>
-<FONT color="green">030</FONT> */<a name="line.30"></a>
-<FONT color="green">031</FONT> public interface Container extends Initializable, Disposable<a name="line.31"></a>
-<FONT color="green">032</FONT> {<a name="line.32"></a>
-<FONT color="green">033</FONT> /** Key used in the context for defining the application root */<a name="line.33"></a>
-<FONT color="green">034</FONT> public static String COMPONENT_APP_ROOT = "componentAppRoot";<a name="line.34"></a>
-<FONT color="green">035</FONT> <a name="line.35"></a>
-<FONT color="green">036</FONT> /** Alternate Merlin Friendly Key used in the context for defining the application root */<a name="line.36"></a>
-<FONT color="green">037</FONT> public static String URN_AVALON_HOME = "urn:avalon:home";<a name="line.37"></a>
-<FONT color="green">038</FONT> <a name="line.38"></a>
-<FONT color="green">039</FONT> /** Alternate Merlin Friendly Key used in the context for defining the application root */<a name="line.39"></a>
-<FONT color="green">040</FONT> public static String URN_AVALON_TEMP = "urn:avalon:temp";<a name="line.40"></a>
-<FONT color="green">041</FONT> <a name="line.41"></a>
-<FONT color="green">042</FONT> public void startup(String configFileName, String roleFileName, String parametersFileName);<a name="line.42"></a>
-<FONT color="green">043</FONT> <a name="line.43"></a>
-<FONT color="green">044</FONT> public Object lookup(String roleName) throws ComponentException;<a name="line.44"></a>
-<FONT color="green">045</FONT> <a name="line.45"></a>
-<FONT color="green">046</FONT> public void release(Object component);<a name="line.46"></a>
-<FONT color="green">047</FONT> <a name="line.47"></a>
-<FONT color="green">048</FONT> <a name="line.48"></a>
-<FONT color="green">049</FONT> }<a name="line.49"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</PRE>
-</BODY>
-</HTML>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="de">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>package org.apache.fulcrum.testcontainer;<a name="line.1"></a>
+<span class="sourceLineNo">002</span><a name="line.2"></a>
+<span class="sourceLineNo">003</span>/*<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * or more contributor license agreements. See the NOTICE file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * distributed with this work for additional information<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * regarding copyright ownership. The ASF licenses this file<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * to you under the Apache License, Version 2.0 (the<a name="line.8"></a>
+<span class="sourceLineNo">009</span> * "License"); you may not use this file except in compliance<a name="line.9"></a>
+<span class="sourceLineNo">010</span> * with the License. You may obtain a copy of the License at<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.12"></a>
+<span class="sourceLineNo">013</span> *<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * Unless required by applicable law or agreed to in writing,<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * software distributed under the License is distributed on an<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.16"></a>
+<span class="sourceLineNo">017</span> * KIND, either express or implied. See the License for the<a name="line.17"></a>
+<span class="sourceLineNo">018</span> * specific language governing permissions and limitations<a name="line.18"></a>
+<span class="sourceLineNo">019</span> * under the License.<a name="line.19"></a>
+<span class="sourceLineNo">020</span> */<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.avalon.framework.activity.Disposable;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.avalon.framework.activity.Initializable;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.avalon.framework.component.ComponentException;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>/**<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * This is a simple interface around the ECM and Yaafi containers<a name="line.27"></a>
+<span class="sourceLineNo">028</span> *<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * @author <a href="mailto:epugh at opensourceconnections.com">Eric Pugh</a><a name="line.29"></a>
+<span class="sourceLineNo">030</span> */<a name="line.30"></a>
+<span class="sourceLineNo">031</span>public interface Container extends Initializable, Disposable<a name="line.31"></a>
+<span class="sourceLineNo">032</span>{<a name="line.32"></a>
+<span class="sourceLineNo">033</span> /** Key used in the context for defining the application root */<a name="line.33"></a>
+<span class="sourceLineNo">034</span> public static String COMPONENT_APP_ROOT = "componentAppRoot";<a name="line.34"></a>
+<span class="sourceLineNo">035</span><a name="line.35"></a>
+<span class="sourceLineNo">036</span> /** Alternate Merlin Friendly Key used in the context for defining the application root */<a name="line.36"></a>
+<span class="sourceLineNo">037</span> public static String URN_AVALON_HOME = "urn:avalon:home";<a name="line.37"></a>
+<span class="sourceLineNo">038</span><a name="line.38"></a>
+<span class="sourceLineNo">039</span> /** Alternate Merlin Friendly Key used in the context for defining the application root */<a name="line.39"></a>
+<span class="sourceLineNo">040</span> public static String URN_AVALON_TEMP = "urn:avalon:temp";<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span> public void startup(String configFileName, String roleFileName, String parametersFileName);<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span> public Object lookup(String roleName) throws ComponentException;<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span> public void release(Object component);<a name="line.46"></a>
+<span class="sourceLineNo">047</span><a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>}<a name="line.49"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file