donaldp 2002/11/11 22:44:46
Added: info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data
QDoxComponent1-info.xml QDoxComponent1.java
Service1.java
info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/otherpkg
Service2.java Service3.java
Log:
Add in some data to enable unit testing of qdox info extraction
Revision Changes Path
1.1
jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/QDoxComponent1-info.xml
Index: QDoxComponent1-info.xml
===================================================================
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE component-info
PUBLIC "-//AVALON/Component Info DTD Version 1.0//EN"
"http://jakarta.apache.org/avalon/dtds/info/componentinfo_1_0.dtd" >
<component-info>
<component
type="org.apache.avalon.framework.tools.infobuilder.test.data.QDoxComponent1"/>
<loggers>
<logger/>
<logger name="foo"/>
</loggers>
<context>
<entry key="foo" type="java.lang.ClassLoader"/>
<entry key="bar" type="org.apache.avalon.framework.logger.Logger"/>
<entry key="baz" type="java.io.File"/>
</context>
<services>
<service
type="org.apache.avalon.framework.tools.infobuilder.test.data.Service1"/>
<service
type="org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service2"
optional="true"/>
<service
type="org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service3"/>
</services>
<dependencies>
<dependency key="foo"
type="org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service3"/>
<dependency
type="org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service3"/>
<dependency
type="org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service2"
optional="true"/>
</dependencies>
</component-info>
1.1
jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/QDoxComponent1.java
Index: QDoxComponent1.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.framework.tools.infobuilder.test.data;
import java.io.Serializable;
import org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service2;
import org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg.Service3;
import org.apache.avalon.framework.logger.AbstractLogEnabled;
import org.apache.avalon.framework.logger.Logger;
import org.apache.avalon.framework.service.Serviceable;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.context.Contextualizable;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.ContextException;
/**
* A simple avalon component to test QDox loading of info etc.
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/11/12 06:44:45 $
* @avalon.component
* @avalon.service type="Service1"
* @avalon.service type="Service2" optional="true"
* @avalon.service type="Service3" optional="false"
*/
public class QDoxComponent1
extends AbstractLogEnabled
implements Serializable, Service1, Service2, Service3, Serviceable,
Contextualizable
{
/**
* @avalon.logger
* @avalon.logger name="foo"
*/
public void enableLogging( Logger logger )
{
super.enableLogging( logger );
}
/**
* @avalon.context type="Context"
* @avalon.entry key="foo" type="ClassLoader"
* @avalon.entry key="bar" type="Logger"
* @avalon.entry key="baz" type="java.io.File"
*/
public void contextualize( Context context )
throws ContextException
{
}
/**
* @avalon.dependency key="foo" type="Service3"
* @avalon.dependency type="Service3"
* @avalon.dependency type="Service2" optional="true"
*/
public void service( ServiceManager manager )
throws ServiceException
{
}
}
1.1
jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/Service1.java
Index: Service1.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.framework.tools.infobuilder.test.data;
/**
* Some random service
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/11/12 06:44:45 $
*/
public interface Service1
{
}
1.1
jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/otherpkg/Service2.java
Index: Service2.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg;
/**
* Some random service
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/11/12 06:44:46 $
*/
public interface Service2
{
}
1.1
jakarta-avalon-excalibur/info/src/test/org/apache/avalon/framework/tools/infobuilder/test/data/otherpkg/Service3.java
Index: Service3.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.framework.tools.infobuilder.test.data.otherpkg;
/**
* Some random service
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/11/12 06:44:46 $
*/
public interface Service3
{
}
--
To unsubscribe, e-mail: <mailto:avalon-cvs-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@;jakarta.apache.org>