public.javadoc.org.spincast.plugins.gson.SpincastGsonPlugin.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastGsonPlugin (org.spincast:spincast-framework 1.13.0 API)
org.spincast.plugins.gson
Class SpincastGsonPlugin
- java.lang.Object
-
- org.spincast.core.guice.SpincastPluginBase
-
- org.spincast.plugins.gson.SpincastGsonPlugin
-
- All Implemented Interfaces:
- SpincastContextTypesInterested, SpincastPlugin
public class SpincastGsonPlugin
extends SpincastPluginBase
Spincast Gson plugin.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastGsonPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
com.google.inject.Module
apply(com.google.inject.Module module)
Applies the plugin.
protected com.google.inject.Module
applyRequiredPlugins(com.google.inject.Module module)
String
getId()
The id of the plugin.
protected com.google.inject.Module
getPluginModule()
-
Methods inherited from class org.spincast.core.guice.SpincastPluginBase
createdGuiceInjector, getPluginsToDisable, getRequestContextImplementationClass, getWebsocketContextImplementationClass, setContextTypes, setRequestContextImplementationClass, setWebsocketContextImplementationClass
-
-
Field Detail
-
PLUGIN_ID
public static final String PLUGIN_ID
-
Method Detail
-
getId
public String getId()
Description copied from interface: SpincastPlugin
The id of the plugin.
-
apply
public com.google.inject.Module apply(com.google.inject.Module module)
Description copied from interface: SpincastPlugin
Applies the plugin.
The plugin can add bindings to the current Guice module,
can modify it and can inspect it in order to decide what to
bind or not.
- Returns:
- an ajusted Guice module.
-
getPluginModule
protected com.google.inject.Module getPluginModule()
-
applyRequiredPlugins
protected com.google.inject.Module applyRequiredPlugins(com.google.inject.Module module)
Copyright © 2019. All rights reserved.