The following are the two interfaces needed to implement a cfml-based filesystem in Railo.
Steps:
- Build implementations of the ResourceProvider and Resource interfaces
- Add your ResourceProvider to the Railo config for the application you are working on:
<resource-provider arguments="arg1:value1;arg2:value2" component="path.to.YourResourceProvider" scheme="yourscheme"/>
- Note: the arguments set in the above configuration are passed as a struct to the "args" argument in the ResourceProvider's constructor.
cool! this helped me with https://github.com/zspitzer/lucee-scope-resource-provider