Class PendingDocumentIdReference
java.lang.Object
io.micronaut.serde.reference.PropertyReference<Object,Object>
io.micronaut.serde.support.reference.PendingDocumentIdReference
A reference to a bean that has not been read yet. Pushed through
PropertyReferenceManager.pushManagedRef(PropertyReference); the consumer receives the bean once
a DocumentIdReference with the same identifier is registered, and the document fails to complete if that
never happens.- Since:
- 3.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReceives the bean once its identifier is registered. -
Constructor Summary
ConstructorsConstructorDescriptionPendingDocumentIdReference(String id, io.micronaut.core.type.Argument<?> type, PendingDocumentIdReference.DocumentIdConsumer consumer) Creates a pending reference. -
Method Summary
Modifier and TypeMethodDescriptionReturns the consumer of the bean.Returns the name of the expected bean type.booleanisInstance(Object bean) Checks whether a bean is compatible with the expected bean type.Methods inherited from class PropertyReference
getIntrospection, getProperty, getReference, getReferenceName
-
Constructor Details
-
PendingDocumentIdReference
public PendingDocumentIdReference(String id, io.micronaut.core.type.Argument<?> type, PendingDocumentIdReference.DocumentIdConsumer consumer) Creates a pending reference.- Parameters:
id- The identifiertype- The expected bean typeconsumer- Receives the bean
-
-
Method Details
-
isInstance
Checks whether a bean is compatible with the expected bean type.- Parameters:
bean- The bean- Returns:
- Whether the bean is an instance of the expected bean type
-
getTypeName
Returns the name of the expected bean type.- Returns:
- The name of the expected bean type
-
getConsumer
Returns the consumer of the bean.- Returns:
- The consumer of the bean
-