https://issues.apache.org/bugzilla/show_bug.cgi?id=47820

           Summary: Static utility methods in Tomcat should be instance
                    methods
           Product: Tomcat 7
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Integration
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Dave Syer <[email protected]> 2009-09-11 02:09:00 PDT 
---
Why are the static addServlet() methods in Tomcat static?  I can see
they don't use any state from the instance, but isn't it cleaner to use
an instance method, so that the API is uniform (everything I want to do
to a tomcat instance goes through the instance)?  It would be more
consistent to follow the pattern of addServlet(String,String,String),
and search for the context by name instead of requiring the instance to
be passed in to a static method.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to