JohT/alias
75.3
Strong · 8 November 2026
4.8k
lines of production code
Java
primary language
7
measurements over time
What this system is
Features
Integration test adds Axon-based messaging boundary and adapters
The integration test module now includes a complete messaging boundary layer and Axon-specific adapters to drive the test scenario. This adds command and query message types (e.g., AccountNicknameQuery, FetchNicknamesQuery), boundary interfaces for command/query gateways, event processing, and aggregate event handling, along with Axon implementations that wire these to the Axon framework (CommandGateway, QueryGateway, TrackingEventProcessor, AggregateLifecycle). It also introduces custom annotations (CommandTargetAggregateIdentifier, CommandTargetAggregateVersion, CommandModelAggregate, etc.) to decouple the API from Axon internals, configures type aliases via a ResourceBundle for serialization, and sets up aggregate configuration with snapshotting and CDI-based parameter resolution.
type-alias-axon-serializer-integration-test/src/main · high confidence
New module for serializing dynamic types with JSON-B
This change introduces the \type-alias-jsonb-typereference\ module, which provides a \TypeReferenceEnhancer\ adapter for the Java API for JSON Binding (JSON-B). This adapter solves the problem of deserializing lists of interface or abstract types (such as \Animal\) by injecting a \\_\_typeref\ property during serialization and using a \TypeReferenceResolver\ to map that reference back to the concrete class during deserialization. The module includes a default resolver based on \ResourceBundle\ (looking for a \TypeAlias\ bundle) and a fallback to full class names, along with a \JsonbConfigProvider\ SPI to allow custom configurations. The diff also includes integration tests demonstrating the serialization of polymorphic collections (e.g., a \Zoo\ containing \Monkey\ and \Horse\ instances) and validation logic for the type alias resource bundles.
type-alias-jsonb-typereference · high confidence
Support for multiple aliases per type and external type mapping
The type-alias example now demonstrates that a single class can be registered under multiple distinct alias names (e.g., 'PrimaryAlias' and 'SecondaryAlias' both mapping to the same type), and that aliases can be defined for external types (such as \java.lang.Integer\ and \java.lang.String\) via annotations on classes or package-info files. This allows users to look up these external types by their custom alias keys in the generated resource bundles.
type-alias-example/src · high confidence
Support for multiple type aliases with primary designation
The library now supports defining multiple aliases for a single type, allowing users to map one class to several names. To ensure generated resource bundles remain distinct, one alias must be designated as the primary one using the new \primary = true\ attribute on the \@TypeAlias\ annotation. This feature is available starting from version 1.1.0.
type-alias · high confidence
Support for type-aliased message types in Axon Framework 5
This release adds a new \AliasableMessageTypeResolver\ for Axon Framework 5, allowing you to replace verbose fully qualified class names with short, business-friendly aliases (e.g., \OrderCreated\) in serialized events and commands. By annotating message classes with \@TypeAlias\ and registering the resolver in your Axon configuration, you can reduce message payload sizes, improve readability, and decouple event type names from package structures to make refactoring safer. The change includes the core resolver implementation, an annotation processor to generate the alias mapping bundle at compile time, and integration tests demonstrating alias resolution and event publishing with aliased types.
type-alias-axon-5-serializer, type-alias-axon-5-serializer-integration-test · high confidence
Behavioural changes
Changelog generation refactored and repository branch renamed to main
The changelog generation process has been restructured: the previous JSON configuration file has been removed and replaced with a dedicated Mustache template (changelogTemplate.mustache) to control the output format, and the generation is now triggered during the Maven 'generate-sources' phase when the 'releases' profile is active. Additionally, the default branch has been migrated from 'master' to 'main', a change reflected in the README, COMMANDS, and SECURITY documentation. The Renovate configuration has also been updated to disable automatic JDK updates for compatibility, ignore specific Maven plugin versions, and enforce Axon framework version constraints (4.x vs 5.x) per module.
(repo-wide) · high confidence
Fail class loading on unknown resource bundle object types
The AliasableResourceBundleClassloader now throws an IllegalArgumentException when it encounters a resource bundle entry with an unexpected value type, instead of silently returning null. This ensures that serialization failures are immediate and explicit when the type alias configuration is invalid, improving error visibility for users relying on the type aliasing feature.
type-alias-axon-serializer/src · high confidence
Removed Eclipse IDE configuration files
Deleted \.settings/\ directories (including \org.eclipse.jdt.core.prefs\, \org.eclipse.m2e.core.prefs\, and related Eclipse preference files) from the \type-alias\, \type-alias-example\, \type-alias-axon-serializer\, and \type-alias-axon-serializer-integration-test\ modules. This removes IDE-specific workspace metadata, allowing the project to rely on standard build tool configurations (Maven) instead of Eclipse-specific settings.
(repo-wide) · high confidence
Support for primary aliases and corrected default package assignment for external types
The TypeAlias annotation processor now allows marking one alias as the 'primary' alias for a type that has multiple aliases via the new \primary\ attribute on \@TypeAlias\. This enables conditional template generation (e.g., including lines only for the primary alias) and enforces that only one primary alias exists per type. Additionally, the processor now correctly assigns external aliases (those with a \type\ attribute) to the package of the annotated element rather than the default package, fixing previous misplacement of generated files for external type definitions.
type-alias/src · high confidence
Updated documentation and cleaned up IDE-specific files
The integration test module's README has been updated to clarify that it runs on a managed WildFly server rather than an embedded one, and to provide the explicit Maven command for building. Additionally, references to the Axon Framework and an Arquillian example have been added to the documentation, while Eclipse-specific project configuration files (.classpath and .project) have been removed to reduce repository clutter.
type-alias-axon-serializer-integration-test · high confidence
Test coverage
Migrated integration tests to JUnit 5 and added tracking event coverage
The integration test suite in the Axon serializer example has been migrated from JUnit 4 to JUnit 5 (Jupiter), updating all test classes to use JUnit 5 annotations and assertions. The migration includes renaming the main integration test class to \AccountEventsourcingIntegrationIT\ and switching the deployment descriptor from a Java Archive to a Web Archive with Maven-resolved dependencies. Additionally, new tests were added to verify tracking event processing, ensuring that event tokens are updated correctly and that subscription queries receive published events. The test infrastructure was also enhanced with a preconfigured aggregate test fixture to handle command target resolution and an internal hex decoder to support blob decoding in the database repository.
type-alias-axon-serializer-integration-test/src/test/java · high confidence
Dependencies
Maven dependency updates and Axon 5 serializer support
This release updates core dependencies including Jackson to 2.22.2, Log4j to 2.26.1, and Axon Framework to 4.13.2, while introducing a new \type-alias-axon-5-serializer\ module and its integration tests to support Axon Framework 5. The project's Maven coordinates have been updated to \io.github.joht.alias\, and the build now targets Java 21 for the main modules while maintaining Java 8 compatibility for the core library.
(dependencies) · high confidence
Housekeeping
Added Axon Framework license notice and cleaned up IDE metadata; Removed build artifacts from the type-alias-axon-serializer-integration-test module; Updated documentation and cleaned up IDE-specific files.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 74 → 75 (+1.7)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 73 → 73 (+0.0)
- Architecture 89 → 89 (+0.1)
- Maturity 67 → 71 (+3.4)
- Readiness 88 → 89 (+0.9)
- Security 82 → 82 (+0.0)
Resolved (19)
- No assertions: allErrorsOfInvalidResourceBundleReported (type-alias-axon-serializer/src/test/java/org/alias/axon/serializer/aliasable/AliasableTypeResourceBundleValidatorTest.java)
- No assertions: allErrorsOfInvalidResourceBundleReported (type-alias-jsonb-typereference/src/test/java/org/alias/jsonb/typereference/resolver/TypeReferenceResourceBundleValidatorTest.java)
- No assertions: failsOnEmptyKey (type-alias-axon-serializer/src/test/java/org/alias/axon/serializer/aliasable/AliasableTypeResourceBundleValidatorTest.java)
- No assertions: failsOnEmptyKey (type-alias-jsonb-typereference/src/test/java/org/alias/jsonb/typereference/resolver/TypeReferenceResourceBundleValidatorTest.java)
- No assertions: failsOnNonMatchingBidirectionalEntries (type-alias-axon-serializer/src/test/java/org/alias/axon/serializer/aliasable/AliasableTypeResourceBundleValidatorTest.java)
- No assertions: failsOnNonMatchingBidirectionalEntries (type-alias-jsonb-typereference/src/test/java/org/alias/jsonb/typereference/resolver/TypeReferenceResourceBundleValidatorTest.java)
- No assertions: failsOnUValueThatDoesNotExistAsAKey (type-alias-axon-serializer/src/test/java/org/alias/axon/serializer/aliasable/AliasableTypeResourceBundleValidatorTest.java)
- No assertions: failsOnUValueThatDoesNotExistAsAKey (type-alias-jsonb-typereference/src/test/java/org/alias/jsonb/typereference/resolver/TypeReferenceResourceBundleValidatorTest.java)
- No assertions: failsOnUnexpectedValueType (type-alias-axon-serializer/src/test/java/org/alias/axon/serializer/aliasable/AliasableTypeResourceBundleValidatorTest.java)
- No assertions: failsOnUnexpectedValueType (type-alias-jsonb-typereference/src/test/java/org/alias/jsonb/typereference/resolver/TypeReferenceResourceBundleValidatorTest.java)
- No assertions: headerTemplateShouldContainGeneratedByNote (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTextTemplateTest.java)
- No assertions: headerTemplateShouldMentionTypeAliasAnnotation (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTextTemplateTest.java)
- No assertions: headerTemplateShouldMentionTypeAliasGeneratedFileAnnotation (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTextTemplateTest.java)
- No assertions: successfulResourceBundleFile (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTemplateBasedWriterTest.java)
- No assertions: successfulTemplatePropertyFile (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTemplateBasedWriterTest.java)
- No assertions: templatePropertyFileContentsShouldBeReadable (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTemplateReaderTest.java)
- No assertions: templateResourceBundleFileContentsShouldBeReadable (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTemplateReaderTest.java)
- No assertions: templateSimpleResourceBundleFileContentsShouldBeReadable (type-alias/src/test/java/org/alias/annotation/internal/templates/TypeAliasTemplateReaderTest.java)
- No assertions: tokensShouldBeUpToDateAfterProcessing (type-alias-axon-serializer-integration-test/src/test/java/org/alias/axon/serializer/integration/AccountEventsourcingIntegrationIT.java)
Changes since last survey
- 4 commits — 4 feature/other, 0 fixes
By area
- (root) — 2 commits
- (repo) — 1 commit
- type-alias-axon-serializer-integration-test/pom.xml — 1 commit
Notable commits
- change: Merge pull request #562 from JohT/renovate/patch-maven.surefire.version
- change: Update dependency io.projectreactor:reactor-core to v3.8.8 (#560)
- change: Update dependency org.apache.maven.plugins:maven-failsafe-plugin to v3.6.1 (#561)
- change: Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.6.1
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
JohT/alias was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 4ef63808d1e353720a72c589612c79470b29a44d — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.