donaldp 2002/11/12 20:00:56
Added: info/src/xdocs sample.xml
Log:
add the start of the sample descriptor
Revision Changes Path
1.1 jakarta-avalon-excalibur/info/src/xdocs/sample.xml
Index: sample.xml
===================================================================
<?xml version="1.0"?>
<document>
<properties>
<title>Overview</title>
<author email="peter at apache.org">Peter Donald</author>
</properties>
<body>
<section name="Introduction">
<p>Below is a sample xml descriptor that includes documentation
describing the elements of the descriptor.</p>
</section>
<section name="Example">
<source><![CDATA[
<?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>
<!--
The following element defines the name of the components class.
-->
<component type="com.biz.MyComponent"/>
<!--
The loggers section defines a set of loggers that the component will
use. Names of loggers are hierarchial using a '.' to separate each
element in the hierarchy. The component gets passed a logger that
is conceptually named "" (empty string). They can retrieve child loggers
via the Logger.getChildLogger(String name) method. The name that they
pass into logger is the next name in the hierarchy. So the below example
indicates that the component will retrieve the "auth" logger and use it
to log messages, such as;
getLogger().getChildLogger("auth").warn( "Some message!" );
-->
<loggers>
<logger/>
<logger name="auth"/>
</loggers>
<context>
<entry key="component.classloader" type="java.lang.ClassLoader"/>
</context>
<services>
<service type="com.biz.Service1"/>
</services>
<dependencies>
<dependency type="com.biz.Service2"/>
<dependency key="com.biz.Service1/Variation" type="com.biz.Service1"
optional="true"/>
</dependencies>
<schema category="configuration" location="MyComponent-schema.xml"/>
</component-info>
]]></source>
</section>
</body>
</document>
--
To unsubscribe, e-mail: <mailto:avalon-cvs-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@;jakarta.apache.org>