Architecture

The Wrapper Library Architecture

How Oorian's wrapper libraries work under the hood.

M. WarbleOctober 1, 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

Security

Security by Default: How Oorian Protects Your Applications

January 11, 2026
Announcement

Why We Built Oorian: The Story Behind the Framework

January 7, 2026
Tutorial

Getting Started with Oorian: Your First Java Web Application

December 31, 2025