Example usage for org.springframework.context PayloadApplicationEvent getPayload

List of usage examples for org.springframework.context PayloadApplicationEvent getPayload

Introduction

In this page you can find the example usage for org.springframework.context PayloadApplicationEvent getPayload.

Prototype

public T getPayload() 

Source Link

Document

Return the payload of the event.

Usage

From source file:org.apache.syncope.core.logic.SyncopeLogic.java

@EventListener
public void addLoadInstant(final PayloadApplicationEvent<SystemInfo.LoadInstant> event) {
    synchronized (MONITOR) {
        initSystemInfo();//from  w  w  w . j a v a 2s  .c  o m
        SYSTEM_INFO.getLoad().add(event.getPayload());
    }
}