add ability to pass arguments to instances of field converters --------------------------------------------------------------
Key: JCR-1279 URL: https://issues.apache.org/jira/browse/JCR-1279 Project: Jackrabbit Issue Type: Wish Components: jcr-mapping Affects Versions: 1.4 Reporter: Paul Mietz Egli Priority: Minor It would be useful to be able to pass arguments to a custom field converter so related converters can be reused. For example, a converter that stores images could take arguments which specify the image type and maximum dimensions. These arguments could be placed in the @Field annotation: @Field(converter = BufferedImageConverter.class, converterArgs = { "png", 120, 80 }) private BufferedImage img; and provided to the type converter instance via a method defined in AtomicTypeConverter: public BufferedImageConverter implements AtomicTypeConverter { /** * new method in the AtomicTypeConverter interface */ public void setConverterArgs(Object[] args) { // ... } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.