Life Cycle Events
The ActiveMatrix runtime exposes component life cycle events—Init and Destroy—to component implementations.
Methods annotated with @Init and @Destroy are invoked when the life cycle events trigger. The following table describes the meaning of each event and how component implementations can handle each event.
When TIBCO Business Studio generates a Java or Spring component implementation, it automatically adds the appropriately annotated initialization and destruction methods:
org.osoa.sca.annotations.Init; org.osoa.sca.annotations.Destroy; @Init public void init() { // Component initialization code. // All properties are initialized and references are injected. } @Destroy public void destroy() { // Component disposal code. // All properties are disposed. }You can customize these methods to perform application-specific initialization and cleanup.