Skip to the content.

Live object lifecycle

FactoryFX supports changing the factory structure at runtime. To customize this process a lifecycle API is provided.

As a built-in optimization the server only executes delta update for the changed live objects. The lifecycle API can be used to configure reuse for expensive resources like sockets or database pools.

All changes are tracked in a changelog and custom validations can be added to factories.

Some live objects need dedicated start and destroy action.
Examples:

code