You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/06/05 16:11:55 UTC

DO NOT REPLY [Bug 9630] New: - Singleton pattern in DOMImplementationImpl requires a private constructor

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9630>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9630

Singleton pattern in DOMImplementationImpl requires a private constructor

           Summary: Singleton pattern in DOMImplementationImpl requires a
                    private constructor
           Product: Xerces2-J
           Version: 2.0.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: DOM
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: elharo@metalab.unc.edu


The Javadoc for DOMImplementationImpl and CoreDOMImplmentationImpl states, " The
DOM API requires that it be a real object rather than static methods. However,
there's nothing that says it can't be a singleton, so that's how I've
implemented it." However, these classes do not in fact implement the singleton
pattern. The default constructor is public. Therefore it is possible to create
new instances of these two classes. Either the JavaDoc comment about singletons
should be deleted or the constructor should be made explicitly private.

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