Class DefaultTypeRegistry
java.lang.Object
io.fluxzero.common.serialization.DefaultTypeRegistry
- All Implemented Interfaces:
TypeRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTypeName(String alias) Returns the fully qualified class name associated with the given alias or type key.Returns the fully qualified names that make up this registry.
-
Constructor Details
-
DefaultTypeRegistry
public DefaultTypeRegistry() -
DefaultTypeRegistry
-
-
Method Details
-
getTypeNames
Description copied from interface:TypeRegistryReturns the fully qualified names that make up this registry.Custom registries that only support alias lookup may retain the empty default. The standard registry exposes its generated catalog so structural metadata such as declared model relationships can be discovered without turning those types into message handlers.
- Specified by:
getTypeNamesin interfaceTypeRegistry
-
getTypeName
Description copied from interface:TypeRegistryReturns the fully qualified class name associated with the given alias or type key.- Specified by:
getTypeNamein interfaceTypeRegistry- Parameters:
alias- the name or alias to resolve, typically obtained from@classin JSON- Returns:
- an
Optionalcontaining the resolved fully qualified class name, or empty if not found
-