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

io.avaje.json.view.ViewBuilderAware Maven / Gradle / Ivy

There is a newer version: 3.0-RC5
Show newest version
package io.avaje.json.view;

import java.lang.invoke.MethodHandle;

/**
 * A (non-scalar) JsonAdapter that is part of building json views.
 * 

* JsonAdapters for complex types that have more than one property like * CustomerJsonAdapter, AddressJsonAdapter can participate in building * a json view that will include only some of their properties. */ public interface ViewBuilderAware { /** * Build view for the top level. */ default void build(ViewBuilder builder) { build(builder, null, null); } /** * Build nested part of the view. */ void build(ViewBuilder builder, String name, MethodHandle handle); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy