How openwms/org.openwms works
This repository is a shared Java utility library for OpenWMS.org services, not a standalone warehouse workflow. Its main runtime contribution is reusable event infrastructure, including transaction-completion event publication and listener dispatch; it also supplies HTTP response/exception support, Hibernate audit integration, startup signaling, and common domain/value utilities. The README describes the library as shared across services. Source excerpts show several internal calls; other listed modules are represented by their exact implementation paths, but their wiring is not inferred where source was not sampled.
Main entry points: FireAfterTransactionAspect.java Transaction event aspect · SimpleEventDispatcher.java Synchronous dispatcher · AbstractWebController.java HTTP controller base · FireAfterTransaction.java Transaction annotations
Components 24
Events
- Transaction annotations
org.openwms.core.util/src/main/java/org/openwms/core/annotation/FireAfterTransaction.java - Async annotation
org.openwms.core.util/src/main/java/org/openwms/core/annotation/FireAfterTransactionAsynchronous.java - Transaction event aspect
org.openwms.core.util/src/main/java/org/openwms/core/aop/FireAfterTransactionAspect.java - Root application event
org.openwms.core.util/src/main/java/org/openwms/core/event/RootApplicationEvent.java - Event broker API
org.openwms.core.util/src/main/java/org/openwms/core/event/EventBroker.java - Event dispatcher API
org.openwms.core.util/src/main/java/org/openwms/core/event/EventDispatcher.java - Synchronous dispatcher
org.openwms.core.util/src/main/java/org/openwms/core/event/SimpleEventDispatcher.java - Event listener API
org.openwms.core.util/src/main/java/org/openwms/core/event/EventListener.java - Properties merge event
org.openwms.core.util/src/main/java/org/openwms/core/event/MergePropertiesEvent.java - Startup initializer
org.openwms.core.util/src/main/java/org/openwms/core/startup/LocalServiceInitializer.java
HTTP support
- HTTP controller base
org.openwms.core.util/src/main/java/org/openwms/core/http/AbstractWebController.java - HTTP business exception
org.openwms.core.util/src/main/java/org/openwms/core/http/HttpBusinessException.java - Exception codes
org.openwms.core.util/src/main/java/org/openwms/core/exception/ExceptionCodes.java - Removal exception
org.openwms.core.util/src/main/java/org/openwms/core/listener/RemovalNotAllowedException.java
Persistence integration
- Envers integrator
org.openwms.core.util/src/main/java/org/openwms/core/integration/persistence/EnversIntegrator.java - Custom delete listener
org.openwms.core.util/src/main/java/org/openwms/core/integration/persistence/CustomPostDeleteEventListener.java
Common primitives
- Tree implementation
org.openwms.core.util/src/main/java/org/openwms/core/util/TreeNodeImpl.java - Tree node API
org.openwms.core.util/src/main/java/org/openwms/core/util/TreeNode.java - Collection utilities
org.openwms.core.util/src/main/java/org/openwms/core/lang/CollectionUtil.java - List extractor
org.openwms.core.util/src/main/java/org/openwms/core/lang/ListExtractor.java - Time provider
org.openwms.core.util/src/main/java/org/openwms/core/time/TimeProvider.java - Measurement interface
org.openwms.core.util/src/main/java/org/openwms/core/values/Measurable.java - Base unit
org.openwms.core.util/src/main/java/org/openwms/core/values/BaseUnit.java
Other components
- OpenWMS services
Connections 16
- OpenWMS services → Transaction annotations: reuse library
- OpenWMS services → Event broker API: reuse library
- Transaction event aspect → Root application event: publishes
org.openwms.core.util/src/main/java/org/openwms/core/aop/FireAfterTransactionAspect.java - Transaction event aspect → Transaction annotations: advises
org.openwms.core.util/src/main/java/org/openwms/core/aop/FireAfterTransactionAspect.java - Transaction event aspect → Async annotation: advises
org.openwms.core.util/src/main/java/org/openwms/core/aop/FireAfterTransactionAspect.java - Synchronous dispatcher → Event dispatcher API: implements
org.openwms.core.util/src/main/java/org/openwms/core/event/SimpleEventDispatcher.java - Synchronous dispatcher → Root application event: dispatches
org.openwms.core.util/src/main/java/org/openwms/core/event/SimpleEventDispatcher.java - Synchronous dispatcher → Event listener API: notifies
org.openwms.core.util/src/main/java/org/openwms/core/event/SimpleEventDispatcher.java - Startup initializer → Properties merge event: publishes
org.openwms.core.util/src/main/java/org/openwms/core/startup/LocalServiceInitializer.java - HTTP controller base → HTTP business exception: handles
org.openwms.core.util/src/main/java/org/openwms/core/http/AbstractWebController.java - HTTP controller base → Exception codes: uses codes
org.openwms.core.util/src/main/java/org/openwms/core/http/AbstractWebController.java - HTTP controller base → Removal exception: handles
org.openwms.core.util/src/main/java/org/openwms/core/http/AbstractWebController.java - Envers integrator → Custom delete listener: registers
org.openwms.core.util/src/main/java/org/openwms/core/integration/persistence/EnversIntegrator.java - Tree implementation → Tree node API: implements
org.openwms.core.util/src/main/java/org/openwms/core/util/TreeNodeImpl.java - Collection utilities → List extractor: uses
org.openwms.core.util/src/main/java/org/openwms/core/lang/CollectionUtil.java - Measurement interface → Base unit: uses
org.openwms.core.util/src/main/java/org/openwms/core/values/Measurable.java