Regarding ClasspathResource

Rod Widdowson rdw at steadingsoftware.com
Fri Jul 15 09:43:13 EDT 2016


> Classpathresource I am mentioning is not the spring one.

I'm not sure that there even is one in the V3 stack.  Put it another way, I'm pretty sure that there isn't.  We have moved over quite heavily to Spring.

However we also took a great deal of care to ensure that OpenSAML was _not_ polluted by any Spring imports so anyone can use any other IOC mechanism.  Or whatever.

If you need to read from the classpath and you do not want to/cannot use spring hen you'll just need to implement a classpath resource.  That Package I references has 4 implementations of Resources for you to look at.  Classpath should be much much easier.

Or you could look at the spring sources - a net.shibboleth Resource has an almost 1-1 match of methods to the Spring resource, and the four modules all implement both Interfaces.

R



More information about the dev mailing list