Architecture

The Wrapper Library Architecture

How Oorian's wrapper libraries work under the hood.

M. WarbleApril 16, 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.

Related Articles

Architecture

The Power of Pure Java Web Development

January 29, 2026
Deep Dive

Oorian's Built-In JavaScript APIs: Control the Browser from Java

February 12, 2026
Deep Dive

CSS Styling in Oorian

February 10, 2026