Skip to Content.
Sympa Menu

mace-opensaml-users - RE: Can OpenSAML be used with JAXP compliant XML parsers?

Subject: OpenSAML user discussion

List archive

RE: Can OpenSAML be used with JAXP compliant XML parsers?


Chronological Thread 
  • From: Scott Cantor <>
  • To: 'Mark Wilcox' <>, 'Shannon Kendrick' <>,
  • Subject: RE: Can OpenSAML be used with JAXP compliant XML parsers?
  • Date: Tue, 04 Mar 2003 16:03:46 -0500
  • Importance: Normal
  • Organization: The Ohio State University

> Scott -- there really isn't any compile time options in Java
> do what you want -- i.e. there's no preprocessor. What you
> probably do is abstract out the functionality and use a
> factory to get the implementation and then could test if the
> method existed before calling it (Java's runtime class
> manipulation can be a wonderful thing when used correctly :).

Yes, and it also duplicates methods all over the SPI and engine classes. ;-)

I obviously ran into that in several places, like with the signature
provider, and simply didn't care enough back then to spend the
time defining SPI's all over the place. Obviously that's worth doing, but boy
do I prefer abstract base classes.

JAXP really is the factory I should be able to use, but unfortunately it
doesn't work very well in practice for non-trivial parsing
needs.

> However, I can't think of why Shannon would be restricted to
> using whatever XML parser the app server used.

Yes, that's my assumption. Sometimes they make it tricky though. Tomcat 4
only recently made it possible to use Xerces without
copying jars around.

-- Scott

---------------------------------------------------mace-opensaml-users-+
For list utilities, archives, subscribe, unsubscribe, etc. please visit the
ListProc web interface at

http://archives.internet2.edu/

---------------------------------------------------mace-opensaml-users--




Archive powered by MHonArc 2.6.16.

Top of Page