001/* Generated by org.apache.camel:apt */
002package org.apache.camel.model.placeholder;
003
004import java.util.HashMap;
005import java.util.Map;
006import java.util.function.Consumer;
007import java.util.function.Supplier;
008
009import org.apache.camel.CamelContext;
010import org.apache.camel.model.dataformat.ZipFileDataFormat;
011import org.apache.camel.spi.PropertyPlaceholderConfigurer;
012
013/**
014 * Source code generated by org.apache.camel:apt
015 */
016public class ZipFileDataFormatPropertyPlaceholderProvider implements PropertyPlaceholderConfigurer {
017
018    private final Map<String, Supplier<String>> readPlaceholders = new HashMap<>();
019    private final Map<String, Consumer<String>> writePlaceholders = new HashMap<>();
020
021    public ZipFileDataFormatPropertyPlaceholderProvider(Object obj) {
022        ZipFileDataFormat definition = (ZipFileDataFormat) obj;
023
024        readPlaceholders.put("id", definition::getId);
025        writePlaceholders.put("id", definition::setId);
026    }
027
028    @Override
029    public Map<String, Supplier<String>> getReadPropertyPlaceholderOptions(CamelContext camelContext) {
030        return readPlaceholders;
031    }
032
033    @Override
034    public Map<String, Consumer<String>> getWritePropertyPlaceholderOptions(CamelContext camelContext) {
035        return writePlaceholders;
036    }
037
038}
039