avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@realityforge.org>
Subject Re: [logger, LogKit] try to fetch classloader both from ClassLoader.class.getName() and "classloader", make Fortress happier
Date Wed, 04 Jun 2003 22:24:56 GMT
Applied tah!

On Wed, 4 Jun 2003 10:15 pm, Anton Tagunov wrote:
> Hello, Developers!
>
> What do you think of the following patch?
> comment:
>     Fortress passes classloader under ClassLoader.class.getName()
>
> --- DefaultLogTargetFactoryManager.orig 2003-06-04 09:27:56.000000000 +0400
> +++ DefaultLogTargetFactoryManager.java 2003-06-04 16:10:36.000000000 +0400
> @@ -112,11 +112,18 @@
>          m_context = context;
>          try
>          {
> -            m_classLoader = (ClassLoader)m_context.get( "classloader" );
> +            m_classLoader = (ClassLoader) m_context.get(
> ClassLoader.class.getName() ); }
>          catch( ContextException ce )
>          {
> -            m_classLoader =
> Thread.currentThread().getContextClassLoader(); +            try
> +            {
> +                m_classLoader = (ClassLoader) m_context.get( "classloader"
> ); +            }
> +            catch( ContextException ce2 )
> +            {
> +                m_classLoader =
> Thread.currentThread().getContextClassLoader(); +            }
>          }
>      }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org

-- 
Cheers,

Peter Donald
*------------------------------------------------*
| You can't wake a person who is pretending      |
|       to be asleep. -Navajo Proverb.           |
*------------------------------------------------* 


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


Mime
View raw message