Architecture

The Wrapper Library Architecture

How Oorian's wrapper libraries work under the hood.

M. WarbleApril 28, 20261 min read
The Wrapper Library Architecture

Understanding how wrapper libraries work helps you use them more effectively and even create your own.

The Bridge Pattern

Each wrapper consists of:

  • Java classes for configuration
  • JavaScript bridge for library interaction
  • Event translation layer

Configuration Flow

  1. You set properties on Java objects
  2. Properties serialize to JSON
  3. JavaScript bridge initializes the library
  4. Events flow back through the bridge

Consistent Conventions

All wrappers follow the same patterns:

  • Fluent setters return this
  • registerListener() for events
  • Jsonable for configuration objects

Conclusion

The wrapper architecture enables Oorian to integrate any JavaScript library while maintaining a consistent, type-safe Java API.

Share this article

Related Articles

Architecture

Event Handling in Oorian

February 19, 2026
Architecture

The Power of Pure Java Web Development

January 29, 2026
Architecture

Understanding Oorian's Flexible Communication Model

January 15, 2026