avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/info/src/xdocs sample.xml
Date Wed, 13 Nov 2002 04:00:56 GMT
donaldp     2002/11/12 20:00:56

  Added:       info/src/xdocs sample.xml
  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"?>
          <author email="peter at apache.org">Peter Donald</author>
          <section name="Introduction">
              <p>Below is a sample xml descriptor that includes documentation
              describing the elements of the descriptor.</p>
          <section name="Example">
  <?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" >
        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!" );
          <logger name="auth"/>
          <entry key="component.classloader" type="java.lang.ClassLoader"/>
          <service type="com.biz.Service1"/>
          <dependency type="com.biz.Service2"/>
          <dependency key="com.biz.Service1/Variation" type="com.biz.Service1"
      <schema category="configuration" location="MyComponent-schema.xml"/>

To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>

View raw message