|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.loom.guice.Plugins
public final class Plugins
Handles all configured plugins with Loom
Method Summary | |
---|---|
static void |
bindActions(com.google.inject.Binder binder,
java.lang.Iterable<java.lang.Class<? extends Action>> actionClasses)
Register a list of action classes in Loom Example of use: Plugins.bindActions(binder(), MortgagesAction.class, CustomersAction.class); |
static void |
bindAnnotationProcessors(com.google.inject.Binder binder,
java.lang.Iterable<java.lang.Class<? extends AnnotationProcessor>> annotationProcessorClasses)
|
static void |
bindConverterFactories(com.google.inject.Binder binder,
java.lang.Iterable<java.lang.Class<? extends AnnotationDrivenConverterFactory>> factories)
Register a list of converter factories Example of use: Plugins.bindActions(binder(), JsonConverterFactory.class); |
static void |
bindConverters(com.google.inject.Binder binder,
java.lang.Iterable<java.lang.Class<? extends Converter>> converters)
Register a list of converter classes Example of use: Plugins.bindActions(binder(), StringConverter.class, IntegerConverter.class); |
static void |
bindJacksonMixins(com.google.inject.Binder binder,
java.lang.Iterable<java.lang.Class> mixins)
Bind a list of jackson mixins to specify the default serializer and deserializer for java classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void bindJacksonMixins(com.google.inject.Binder binder, java.lang.Iterable<java.lang.Class> mixins)
JsonDeserialize.as()
value, which will be
used to bind the deserializer to the java class.
Details about mixins in Jackson can be seen here
Example of use: Plugins.bindJacksonMixins(binder(), GeoPtJacksonMixin.class);
binder
- the binder valuemixins
- the list of mixins to applypublic static void bindActions(com.google.inject.Binder binder, java.lang.Iterable<java.lang.Class<? extends Action>> actionClasses)
binder
- the binder valueactionClasses
- the list of action classes to registerpublic static void bindConverterFactories(com.google.inject.Binder binder, java.lang.Iterable<java.lang.Class<? extends AnnotationDrivenConverterFactory>> factories)
binder
- the binder valuefactories
- the list of factory classes to registerpublic static void bindConverters(com.google.inject.Binder binder, java.lang.Iterable<java.lang.Class<? extends Converter>> converters)
binder
- the binder valueconverters
- the list of converter classes to registerpublic static void bindAnnotationProcessors(com.google.inject.Binder binder, java.lang.Iterable<java.lang.Class<? extends AnnotationProcessor>> annotationProcessorClasses)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |