Uses of Class
org.axonframework.common.TypeReference
Packages that use TypeReference
Package
Description
Contains common utility classes needed in different components of the framework.
Component configuration, registry, and lifecycle support.
Classes that implement the concept of command handling using explicit command objects.
Classes related to message processing in Axon Framework.
Package for event handling components in Axon Framework.
Part of the Axon Messaging module.
Package for query handling components in Axon Framework.
-
Uses of TypeReference in org.axonframework.common
Methods in org.axonframework.common that return TypeReferenceModifier and TypeMethodDescriptionstatic <C> TypeReference<C> Constructs aTypeReferencefor the givenclazz.static <C> TypeReference<C> Constructs aTypeReferencefor the giventype.Methods in org.axonframework.common with parameters of type TypeReferenceModifier and TypeMethodDescriptionbooleanTypeReference.isAssignableFrom(TypeReference<?> other) Checks if thisTypeReferenceis assignable from theotherTypeReference. -
Uses of TypeReference in org.axonframework.common.configuration
Methods in org.axonframework.common.configuration that return TypeReferenceModifier and TypeMethodDescriptionComponent.Identifier.type()Returns the value of thetyperecord component.Methods in org.axonframework.common.configuration with parameters of type TypeReferenceModifier and TypeMethodDescriptiondefault <C> CConfiguration.getComponent(TypeReference<C> typeReference) Returns the component declared under the giventypeReferenceor throws aComponentNotFoundExceptionif it does not exist.default <C> CConfiguration.getComponent(TypeReference<C> typeReference, @Nullable String name) Returns the component declared under the giventypeReferenceandnameor throws aComponentNotFoundExceptionif it does not exist.default <C> Optional<C> Configuration.getOptionalComponent(TypeReference<C> typeReference) Returns the component declared under the giventypeReferencewithin anOptional.<C> Optional<C> Configuration.getOptionalComponent(TypeReference<C> typeReference, @Nullable String name) Returns the component declared under the giventypeReferenceandnamewithin anOptional.default booleanConfiguration.hasComponent(TypeReference<?> typeReference) default booleanConfiguration.hasComponent(TypeReference<?> typeReference, @Nullable String name) Check whether there is aComponentpresent in thisConfigurationfor the giventypeReferenceandnamecombination.static <C> ComponentDefinition.IncompleteComponentDefinition<C> ComponentDefinition.ofType(TypeReference<C> type) Starts defining a component with given declaredtype.static <C> ComponentDefinition.IncompleteComponentDefinition<C> ComponentDefinition.ofTypeAndName(TypeReference<C> type, @Nullable String name) Starts defining a component with given declaredtypeandname.Constructors in org.axonframework.common.configuration with parameters of type TypeReferenceModifierConstructorDescriptionComponentNotFoundException(TypeReference<?> typeReference, @Nullable String name) Constructs aComponentNotFoundExceptionwith a default message describing aComponentcouldn't be found for the giventypeReferenceandname.Identifier(TypeReference<C> type, @Nullable String name) Compact constructor asserting whether thetypeandnameare non-null and not empty. -
Uses of TypeReference in org.axonframework.messaging.commandhandling
Methods in org.axonframework.messaging.commandhandling with parameters of type TypeReferenceModifier and TypeMethodDescriptiondefault CommandMessageCommandMessage.withConvertedPayload(TypeReference<?> type, Converter converter) default CommandResultMessageCommandResultMessage.withConvertedPayload(TypeReference<?> type, Converter converter) -
Uses of TypeReference in org.axonframework.messaging.core
Methods in org.axonframework.messaging.core with parameters of type TypeReferenceModifier and TypeMethodDescriptiondefault <T> @Nullable TMessage.payloadAs(TypeReference<T> type) Returns the payload of thisMessagecasted to the given type ifMessage.payloadType()isassignable fromthe giventype, otherwise throws aConversionException.default <T> @Nullable TMessage.payloadAs(TypeReference<T> type, @Nullable Converter converter) Returns the payload of thisMessage, converted to the giventypeby the givenconverter.default MessageMessage.withConvertedPayload(TypeReference<?> type, Converter converter) Returns a newMessageimplementation with itsMessage.payload()converted to the giventypeby the givenconverter.default ResultMessageResultMessage.withConvertedPayload(TypeReference<?> type, Converter converter) -
Uses of TypeReference in org.axonframework.messaging.eventhandling
Methods in org.axonframework.messaging.eventhandling with parameters of type TypeReferenceModifier and TypeMethodDescriptiondefault EventMessageEventMessage.withConvertedPayload(TypeReference<?> type, Converter converter) -
Uses of TypeReference in org.axonframework.messaging.eventhandling.replay
Methods in org.axonframework.messaging.eventhandling.replay with parameters of type TypeReferenceModifier and TypeMethodDescriptiondefault ReplayStatusChangedReplayStatusChanged.withConvertedPayload(TypeReference<?> type, Converter converter) default ResetContextResetContext.withConvertedPayload(TypeReference<?> type, Converter converter) -
Uses of TypeReference in org.axonframework.messaging.queryhandling
Methods in org.axonframework.messaging.queryhandling with parameters of type TypeReferenceModifier and TypeMethodDescriptiondefault QueryMessageQueryMessage.withConvertedPayload(TypeReference<?> type, Converter converter) default QueryResponseMessageQueryResponseMessage.withConvertedPayload(TypeReference<?> type, Converter converter) default SubscriptionQueryUpdateMessageSubscriptionQueryUpdateMessage.withConvertedPayload(TypeReference<?> type, Converter converter)