avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: ExcaliburTestCase and Loggable components
Date Wed, 31 Oct 2001 18:55:32 GMT
Neeme Praks wrote:
> If I configure the ExcaliburTestCase to set up the ComponenManager and some
> Components for me, then ComponentManager should be setting the Logger on the
> created Components as well, no?
> Right now I have the following conf:
>     <roles>
>         <role name="org.apache.avalon.excalibur.xml.xpath.XPathProcessor"
> shorthand="xpath-processor"
> default-class="org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl"/>
>         <role name="org.apache.avalon.excalibur.i18n.BundleSelector"
> shorthand="bundle-selector"
> default-class="org.apache.avalon.excalibur.i18n.BundleSelector"/>
>     </roles>
> When the ComponentManager is creating the BundleSelector component, I get an
> NPE in .configure() method, because the logger is not set, .setLogger() is
> not yet called.
> Am I missing something or is it a bug? Probably me missing something...

Hmm.  Let me check this out.  The components should be getting the Logger


"Those who would trade liberty for
 temporary security deserve neither"
                - Benjamin Franklin

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

View raw message