Java tutorial
/* * Copyright (C) 2011-Present Funk committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.javafunk.funk.jackson; import com.fasterxml.jackson.core.Version; import com.fasterxml.jackson.core.json.PackageVersion; import com.fasterxml.jackson.databind.Module; public class FunkModule extends Module { @Override public String getModuleName() { return "FunkModule"; } @Override public Version version() { return PackageVersion.VERSION; } @Override public void setupModule(SetupContext context) { context.addDeserializers(new FunkDeserializers()); context.addSerializers(new FunkSerializers()); } }