All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jrodeo.bson.marshallers.MarshallerFactory Maven / Gradle / Ivy

Go to download

A tool to create Java marshallers to and from bson. Currently used in a data access layer serialize Json to Bson for MongoDB storage.

There is a newer version: 0.9.15
Show newest version
package com.jrodeo.bson.marshallers;


import java.util.List;

/**
 * The MarshallerGenerator will build implementations of this interface to
 * register various bean marshallers.
 */
public interface MarshallerFactory {

    /**
     * This method is used at runtime by the generated factories to register marshallers for
     * various beans.
     *
     * @param marshaller the Marshaller to register
     */
    void registerMarshaller(Marshaller marshaller);

    /**
     * This method is used at runtime to lookup what marshallers the implementation has.
     *
     * @return a List of Marshallers registerd with this factory.
     */
    List getMarshallers();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy