Verified Owner
Top Constructors Methods
org.jabref.http.dto

public Class GsonFactory

extends Object
implements Factory<Gson>
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.api.Factory
Imports
com.google.gson.Gson, .GsonBuilder, org.glassfish.hk2.api.Factory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
dispose(Gson instance)

Implements org.glassfish.hk2.api.Factory.dispose.

This method will dispose of objects created with this scope.

public Gson
provide()

Implements org.glassfish.hk2.api.Factory.provide.

This method will create instances of the type of this factory.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GsonFactoryback to summary
public GsonFactory()

Method Detail

disposeback to summary
public void dispose(Gson instance)

Implements org.glassfish.hk2.api.Factory.dispose.

Doc from org.glassfish.hk2.api.Factory.dispose.

This method will dispose of objects created with this scope. This method should not be annotated, as it is naturally paired with the provide method

Annotations
@Override
provideback to summary
public Gson provide()

Implements org.glassfish.hk2.api.Factory.provide.

Doc from org.glassfish.hk2.api.Factory.provide.

This method will create instances of the type of this factory. The provide method must be annotated with the desired scope and qualifiers.

Annotations
@Override