public interface RegisterableBinder
Modifier and Type | Method and Description |
---|---|
Iterable<ConverterKey<?,?>> |
getConverterEntries()
Return an iterable collection of ConverterKeys, one for each currently registered conversion
|
void |
registerAnnotatedClasses(Class<?>... classesToInspect)
Inspect each of the supplied classes, processing any of the annotated methods found
|
<S,T> void |
registerBinding(Class<S> sourceClass,
Class<T> targetClass,
Binding<S,T> converter)
Register a Binding with the given source and target class.
|
<S,T> void |
registerBinding(Class<S> sourceClass,
Class<T> targetClass,
Binding<S,T> converter,
Class<? extends Annotation> qualifier)
Register a Binding with the given source and target class.
|
<S,T> void |
registerBinding(ConverterKey<S,T> key,
Binding<S,T> converter)
Register a Binding with the given source and target class.
|
void |
registerConfiguration(URL nextLocation)
Register the configuration file (bindings.xml) at the given URL
|
<S,T> void |
registerConverter(Class<S> sourceClass,
Class<T> targetClass,
Converter<S,T> converter)
Register a Converter with the given input and output classes.
|
<S,T> void |
registerConverter(Class<S> sourceClass,
Class<T> targetClass,
Converter<S,T> converter,
Class<? extends Annotation> qualifier)
Register a Converter with the given input and output classes.
|
<S,T> void |
registerConverter(ConverterKey<S,T> key,
Converter<S,T> converter)
Register a Converter with the given input and output classes.
|
<S,T> void |
registerMarshaller(Class<S> sourceClass,
Class<T> targetClass,
ToMarshaller<S,T> converter)
Register a Marshaller with the given source and target class.
|
<S,T> void |
registerMarshaller(Class<S> sourceClass,
Class<T> targetClass,
ToMarshaller<S,T> converter,
Class<? extends Annotation> qualifier)
Register a Marshaller with the given source and target class.
|
<S,T> void |
registerMarshaller(ConverterKey<S,T> key,
ToMarshaller<S,T> converter)
Register a Marshaller with the given source and target class.
|
<S,T> void |
registerUnmarshaller(Class<S> sourceClass,
Class<T> targetClass,
FromUnmarshaller<S,T> converter)
Register an UnMarshaller with the given source and target class.
|
<S,T> void |
registerUnmarshaller(Class<S> sourceClass,
Class<T> targetClass,
FromUnmarshaller<S,T> converter,
Class<? extends Annotation> qualifier)
Register an UnMarshaller with the given source and target class.
|
<S,T> void |
registerUnmarshaller(ConverterKey<S,T> key,
FromUnmarshaller<S,T> converter)
Register an UnMarshaller with the given source and target class.
|
void registerConfiguration(URL nextLocation)
nextLocation
- The URL to register<S,T> void registerBinding(ConverterKey<S,T> key, Binding<S,T> converter)
S
- Source typeT
- Target typekey
- The converter keyconverter
- The binding to be registered<S,T> void registerUnmarshaller(ConverterKey<S,T> key, FromUnmarshaller<S,T> converter)
S
- Source typeT
- Target typekey
- The converter keyconverter
- The FromUnmarshaller to be registered<S,T> void registerMarshaller(ConverterKey<S,T> key, ToMarshaller<S,T> converter)
S
- Source typeT
- Target typekey
- The converter keyconverter
- The ToMarshaller to be registered<S,T> void registerConverter(ConverterKey<S,T> key, Converter<S,T> converter)
S
- Source typeT
- Target typekey
- The converter keyconverter
- The Converter to be registered<S,T> void registerBinding(Class<S> sourceClass, Class<T> targetClass, Binding<S,T> converter)
S
- Source typeT
- Target typesourceClass
- The source (owning) classtargetClass
- The target (foreign) classconverter
- The binding to be registered<S,T> void registerUnmarshaller(Class<S> sourceClass, Class<T> targetClass, FromUnmarshaller<S,T> converter)
S
- Source typeT
- Target typesourceClass
- The source (input) classtargetClass
- The target (output) classconverter
- The FromUnmarshaller to be registered<S,T> void registerMarshaller(Class<S> sourceClass, Class<T> targetClass, ToMarshaller<S,T> converter)
S
- Source typeT
- Target typesourceClass
- The source (input) classtargetClass
- The target (output) classconverter
- The ToMarshaller to be registered<S,T> void registerConverter(Class<S> sourceClass, Class<T> targetClass, Converter<S,T> converter)
S
- Source typeT
- Target typesourceClass
- The source (input) classtargetClass
- The target (output) classconverter
- The Converter to be registered<S,T> void registerBinding(Class<S> sourceClass, Class<T> targetClass, Binding<S,T> converter, Class<? extends Annotation> qualifier)
S
- Source typeT
- Target typesourceClass
- The source (owning) classtargetClass
- The target (foreign) classconverter
- The binding to be registeredqualifier
- The qualifier for which the binding must be registered<S,T> void registerUnmarshaller(Class<S> sourceClass, Class<T> targetClass, FromUnmarshaller<S,T> converter, Class<? extends Annotation> qualifier)
S
- Source typeT
- Target typesourceClass
- The source (input) classtargetClass
- The target (output) classconverter
- The FromUnmarshaller to be registeredqualifier
- The qualifier for which the unmarshaller must be registered<S,T> void registerMarshaller(Class<S> sourceClass, Class<T> targetClass, ToMarshaller<S,T> converter, Class<? extends Annotation> qualifier)
S
- Source typeT
- Target typesourceClass
- The source (input) classtargetClass
- The target (output) classconverter
- The ToMarshaller to be registeredqualifier
- The qualifier for which the marshaller must be registered<S,T> void registerConverter(Class<S> sourceClass, Class<T> targetClass, Converter<S,T> converter, Class<? extends Annotation> qualifier)
S
- Source typeT
- Target typesourceClass
- The source (input) classtargetClass
- The target (output) classconverter
- The Converter to be registeredqualifier
- The qualifier for which the converter must be registeredvoid registerAnnotatedClasses(Class<?>... classesToInspect)
classesToInspect
- Iterable<ConverterKey<?,?>> getConverterEntries()
Copyright © 2010–2018 Jadira Systems. All rights reserved.