You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/11/16 06:47:57 UTC
cvs commit: jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data QDoxComponent1-info.xml QDoxComponent1.java
donaldp 2002/11/15 21:47:57
Modified: info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data
QDoxComponent1-info.xml QDoxComponent1.java
Log:
Add in support for testing qdox transform for configuration
Revision Changes Path
1.3 +2 -0 jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/QDoxComponent1-info.xml
Index: QDoxComponent1-info.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/QDoxComponent1-info.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- QDoxComponent1-info.xml 15 Nov 2002 22:27:02 -0000 1.2
+++ QDoxComponent1-info.xml 16 Nov 2002 05:47:57 -0000 1.3
@@ -29,4 +29,6 @@
<dependency type="org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service2" optional="true"/>
</dependencies>
+ <schema category="configuration" type="http://relaxng.org/ns/structure/1.0"/>
+
</component-info>
1.2 +15 -4 jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/QDoxComponent1.java
Index: QDoxComponent1.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/QDoxComponent1.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- QDoxComponent1.java 12 Nov 2002 06:44:45 -0000 1.1
+++ QDoxComponent1.java 16 Nov 2002 05:47:57 -0000 1.2
@@ -18,6 +18,9 @@
import org.apache.avalon.framework.context.Contextualizable;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.ContextException;
+import org.apache.avalon.framework.configuration.Configurable;
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
/**
* A simple avalon component to test QDox loading of info etc.
@@ -26,12 +29,12 @@
* @version $Revision$ $Date$
* @avalon.component
* @avalon.service type="Service1"
- * @avalon.service type="Service2" optional="true"
- * @avalon.service type="Service3" optional="false"
+ * @avalon.service type="Service2"
+ * @avalon.service type="Service3"
*/
public class QDoxComponent1
extends AbstractLogEnabled
- implements Serializable, Service1, Service2, Service3, Serviceable, Contextualizable
+ implements Serializable, Service1, Service2, Service3, Serviceable, Contextualizable, Configurable
{
/**
* @avalon.logger
@@ -60,6 +63,14 @@
*/
public void service( ServiceManager manager )
throws ServiceException
+ {
+ }
+
+ /**
+ * @avalon.configuration type="http://relaxng.org/ns/structure/1.0"
+ */
+ public void configure( Configuration configuration )
+ throws ConfigurationException
{
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>