Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to implement handling and validation of common parameter into the Policy Framework Components using Spring boot framework.

Table of Contents

Environment

A component can use org.springframework.core.env.Environment component directly.

...

The code below shows how to inject a value of a property into @Schedule @Scheduled configuration.

Code Block
languagejava
    @Scheduled(
            fixedRateString = "${runtime.participantParameters.heartBeatMs}",
            initialDelayString = "${runtime.participantParameters.heartBeatMs}")
    public void schedule() { 
}

...