I’ve just started writing a new ImageReader with much improved functionality (using jmagick somehow) and I just stumbled upon this in the ResourceReader implementation:
# public void configure(Configuration configuration) throws ConfigurationException {
# // VG Parameters are deprecated as of 2.2.0-Dev/2.1.6-Dev
# final Parameters parameters = Parameters.fromConfiguration(configuration);
# this.configuredExpires = parameters.getParameterAsLong("expires", -1);
Could someone of you give me a quick note what that means? What should I keep in mind when implementing my Reader?
Use of Parameters in configure() is discouraged. Please use Configuration itself instead of Parameters. Code should read:
this.configuredExpires = configuration.getChild("expires").getValueAsLong(-1);What does the VG stand for?
Initials.
And does this somehow affect the way I’m retrieving parameters from the request?
No.
Vadim
