Example usage for com.google.gson Gson excluder

List of usage examples for com.google.gson Gson excluder

Introduction

In this page you can find the example usage for com.google.gson Gson excluder.

Prototype

Excluder excluder

To view the source code for com.google.gson Gson excluder.

Click Source Link

Usage

From source file:org.lastaflute.core.json.engine.GsonJsonEngine.java

License:Apache License

protected LaReflectiveTypeAdapterFactory createReflectiveTypeAdapterFactory(Gson newGson, Object factory) {
    final ConstructorConstructor constructorConstructor = getConstructorConstructor(factory);
    final JsonAdapterAnnotationTypeAdapterFactory jsonAdapterFactory = getJsonAdapterFactory(factory);
    final FieldNamingStrategy fieldNamingStrategy = newGson.fieldNamingStrategy();
    final Excluder excluder = newGson.excluder();
    return new LaReflectiveTypeAdapterFactory(constructorConstructor, fieldNamingStrategy, excluder,
            jsonAdapterFactory);/*from   www.j  a v a 2 s .  co m*/
}