I am creating a filter which requires the user to give a Supplier<Rule> to fetch some custom rules. I am wondering how to go about getting this Supplier from the configuration xml.
One way I have thought of is using some sort of Registry and then just asking the user to provide a key to lookup into the Registry to fetch the Supplier. The user then registers his Supplier to this Registry in Java code. What are your thoughts on this and do you guys know of a better way to do this? Thanks, Adwait.