← Back to Stormify Documentation

StormifyAware

interface StormifyAware

Interface for objects that can be bound to a Stormify instance via attachTo.

Two kinds of library objects implement this:

Call Stormify.attach to bind an instance. The target then uses it for subsequent database operations without receiving it as an explicit parameter.

User code should not implement this interface directly — extend StormifyEntity (for entities) or use the PagedList class (for paged views) instead.

Inheritors

Functions

Link copied to clipboard
abstract fun attachTo(stormify: Stormify)

Binds stormify to this object. Implementations store the reference and may reset any state that depends on the previously-attached instance.