How mulianz/write_your_own_java_framework_exercices works
This repository is a collection of small Java-framework exercises, not one integrated application. Its user workflow is to choose a capability, use its API with Java objects or method calls, and get JSON conversion, dependency resolution, interception, or ORM behavior. These are independent domain stages rather than a shared pipeline. The mapper and injector have sampled implementation evidence; the ORM excerpt ends at a TODO, so its documented capability is represented without guessed runtime links. Edges cite only source references visible in the supplied index or excerpts.
Main entry points: InterceptorRegistry.java Interceptor registry · JSONWriter.java JSON writing · JSONReader.java JSON reading · InjectorRegistry.java Injector registry
Components 15
JSON Mapper
- JSON writing
mapper/src/main/java/com/github/forax/framework/mapper/JSONWriter.java - JSON property names
mapper/src/main/java/com/github/forax/framework/mapper/JSONProperty.java - JSON reading
mapper/src/main/java/com/github/forax/framework/mapper/JSONReader.java - JSON parser
mapper/src/main/java/com/github/forax/framework/mapper/ToyJSONParser.java
Dependency Injection
- Injector registry
injector/src/main/java/com/github/forax/framework/injector/InjectorRegistry.java - Inject annotation
injector/src/main/java/com/github/forax/framework/injector/Inject.java - Classpath scanning
injector/src/main/java/com/github/forax/framework/injector/AnnotationScanner.java
Method Interception
- Interceptor registry
interceptor/src/main/java/org/github/forax/framework/interceptor/InterceptorRegistry.java - Interceptor
interceptor/src/main/java/org/github/forax/framework/interceptor/Interceptor.java - Invocation chain
interceptor/src/main/java/org/github/forax/framework/interceptor/Invocation.java - Around advice
interceptor/src/main/java/org/github/forax/framework/interceptor/AroundAdvice.java
Object Relational Mapping
- Repository API
orm/src/main/java/com/github/forax/framework/orm/Repository.java - ORM runtime
orm/src/main/java/com/github/forax/framework/orm/ORM.java - Mapping annotations
orm/src/main/java/com/github/forax/framework/orm/Table.java
Other components
- Framework user
Connections 7
- JSON writing → JSON property names: reads names
mapper/src/main/java/com/github/forax/framework/mapper/JSONWriter.java - JSON reading → JSON parser: parses with
mapper/src/main/java/com/github/forax/framework/mapper/JSONReader.java - Injector registry → Inject annotation: checks annotation
injector/src/main/java/com/github/forax/framework/injector/InjectorRegistry.java - Interceptor registry → Interceptor: registers and dispatches
interceptor/src/main/java/org/github/forax/framework/interceptor/InterceptorRegistry.java - Interceptor registry → Invocation chain: builds invocation
interceptor/src/main/java/org/github/forax/framework/interceptor/InterceptorRegistry.java - Interceptor registry → Around advice: wraps advice
interceptor/src/main/java/org/github/forax/framework/interceptor/InterceptorRegistry.java - ORM runtime → Repository API: resolves repository
orm/src/main/java/com/github/forax/framework/orm/ORM.java