Make all configuration resources abstract ?
Tom Zeller
tzeller at dragonacea.biz
Thu Dec 19 14:03:05 EST 2013
>>A stumbling block was that some elements in our Spring bean definition
>>files expect a File to be injected, and I was wondering if it was
>>worth the time to abstract File to Resource in general.
>
> Pointer? I'm not sure I follow without seeing an example.
Sure. ${idp.sealer.storePath} in system/conf/global-system.xml :
<bean id="shibboleth.DataSealer"
class="net.shibboleth.utilities.java.support.security.DataSealer"
p:keystorePath="${idp.home}/${idp.sealer.storePath}"
in DataSealer :
225 ... setKeystorePath(@Nonnull @NotEmpty final String path) {}
476 ... new java.io.FileInputStream(keystorePath);
The path would remain a string, but we would parse it as an abstract resource.
More information about the dev
mailing list