Package org.mongodb.morphia.mapping

Examples of org.mongodb.morphia.mapping.MapperOptions


*/
public class GuiceExtension {

    public GuiceExtension(final Morphia morphia, final Injector injector) {
        Assert.parameterNotNull(morphia, "morphia");
        final MapperOptions options = morphia.getMapper()
                                             .getOptions();
        options.setObjectFactory(new GuiceObjectFactory(options.getObjectFactory(), injector));
    }
View Full Code Here

TOP

Related Classes of org.mongodb.morphia.mapping.MapperOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.