Interface EncoderConfiguration


  • public interface EncoderConfiguration
    Used to configure an instance of org.geotools.xml.Writer.

    Implementations supply a series of Encoder implementations (typically one for each type of object in your model that must be encoded.

    Encoder implementations are supplied by registering them with the supplied container.

             
            class MyEncoderConfiguration implements EncoderConfiguration {
                    void configure(MutablePicoContainer container) {
                             container.registerComponentImplementation(FooEncoder.class);
                      container.registerComponentImplementation(BarEncoder.class);
                      ...
                    }
             }
             
     
    Author:
    Justin Deoliveira, The Open Planning Project
    • Method Detail

      • confgiure

        void confgiure​(MutablePicoContainer container)
        Populates the container with implementations of Encoder.
        Parameters:
        container - The container used to store encoder implementations.