I have hopefully a quick question on how Cayenne can be configured to use a configuration file outside of a JAR/WAR.

I currently use this to reference an absolute file path for my Cayenne files but I see that FilesystemResourceLocator is now deprecated ...

            Module myModule = (org.apache.cayenne.di.Binder binder) -> {
                binder.bind(ResourceLocator.class).toInstance(new FilesystemResourceLocator(filePathForCayenne));
                ...

What is the "new" way to replicate the same functionality.  The deprecated notes just provide the same example I'm already using.

Thanks,

Andrew



Reply via email to