Darn web email interface. . . In any event, what I was hoping to demonstrate below was that you could create an implementation of java.net.URLStreamHandler and then create an URL using the constructor URL(URL, String, URLStreamHandler).
The decryption would be done on the fly in the stream handler. > Why don't you create your own URL content handler for this? > > Then you would do something like: > > > builder.addModuleDescriptorProvider( > new XmlModuleDescriptorProvider( > resolver, > new URLResource(StandardContainer.class.getResource( > > THIS_MODULE)))); > >> -----Original Message----- >> From: Rieser, Michael (SCI TW) [mailto:[EMAIL PROTECTED] >> Sent: Friday, April 08, 2005 8:09 AM >> To: [email protected] >> Subject: non-File based configuration >> >> We're trying to configure a hivemind application which will use >> encrypted >> XML configuration files on disk. The FAQ >> _PuttingHivemindConfigurationFilesOutsideAnEAROrWAR_ seemed somewhat >> related, but >> shows how to use apis that no longer seem to exist in RegistryBuilder. >> >> Is there a simple way to build the registry from a non-File source? If >> it >> could be done from an InputSource or an InputStream, it should be a >> piece >> of cake as we could create a FilterInputStream and do the decrypting in >> the filter. >> >> We do not want to read the encrypted files and write them out to an >> unencrypted File to give to hivemind. >> >> We've looked at subclassing things like XmlResourceProcessor, but didn't >> find any methods that could easily be overriden to get the desired >> behavior. Some of the more likely candidates were private or would >> require >> us to duplicate too much code in the subclasses. >> >> Any pointers would be appreciated. >> >> Thanks, >> Mike >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
