axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Scheuerle (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4620) Adding OnDemandLogger to allow the LogFactory lookup to occur on first touch versus during static class initialization
Date Tue, 09 Feb 2010 20:13:28 GMT
Adding OnDemandLogger to allow the LogFactory lookup to occur on first touch versus during
static class initialization
----------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4620
                 URL: https://issues.apache.org/jira/browse/AXIS2-4620
             Project: Axis2
          Issue Type: Bug
          Components: kernel
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


Problem:
	In most classes, the Log and LogFactory are statically declared (example AxisServlet).  This
causes the Log to be discovered and loaded during the class loading, which can be expensive.

	If Axis2 is embedded, the wrong Log may be calculated (i.e. it may get the Log associated
with the static loading versus the Log associated with the application's classloader).

Solution:
	Adding a OnDemandLogger object will defer the Log construction until the Log is needed. 
 This solution was proposed by Nikhil Thaker and Muhammad Sadiq.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message