Package io.micronaut.jms.bind
Class JMSArgumentBinderRegistry
java.lang.Object
io.micronaut.jms.bind.JMSArgumentBinderRegistry
- All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinderRegistry<javax.jms.Message>
@Internal
@Singleton
public class JMSArgumentBinderRegistry
extends Object
implements io.micronaut.core.bind.ArgumentBinderRegistry<javax.jms.Message>
An
ArgumentBinderRegistry
for all implementations of
ArgumentBinder
capable of binding a Message
.- Since:
- 1.0.0
- Author:
- Elliott Pope
- See Also:
-
Constructor Summary
ConstructorDescriptionJMSArgumentBinderRegistry
(io.micronaut.core.convert.ConversionService conversionService, Deserializer deserializer) -
Method Summary
Modifier and TypeMethodDescription<T> Optional<io.micronaut.core.bind.ArgumentBinder<T,
javax.jms.Message>> findArgumentBinder
(io.micronaut.core.type.Argument<T> argument) void
registerArgumentBinder
(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?, ?, ?> binder) Registers anArgumentBinder
.toString()
void
unregisterArgumentBinder
(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?, ?, ?> binder) Remove a registered binder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micronaut.core.bind.ArgumentBinderRegistry
addArgumentBinder, addRequestArgumentBinder, findArgumentBinder
-
Constructor Details
-
JMSArgumentBinderRegistry
public JMSArgumentBinderRegistry(io.micronaut.core.convert.ConversionService conversionService, Deserializer deserializer)
-
-
Method Details
-
registerArgumentBinder
public void registerArgumentBinder(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?, ?, ?> binder) Registers anArgumentBinder
. ImplementOrdered
to override the default binder for the parameter annotation type.- Parameters:
binder
- the binder
-
unregisterArgumentBinder
public void unregisterArgumentBinder(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?, ?, ?> binder) Remove a registered binder. Primarily for testing.- Parameters:
binder
- the binder to remove
-
findArgumentBinder
public <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,javax.jms.Message>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument) - Specified by:
findArgumentBinder
in interfaceio.micronaut.core.bind.ArgumentBinderRegistry<javax.jms.Message>
-
toString
-