When using the code below, I get an error “AppContext cannot be resolved to type” in the IDE and there is no “quick fix”.


import org.springframework.stereotype.Component;

public class ManagerWorker implements AppContext.Listener {
    private Integer count;

    public ManagerWorker() {
        count = 0;
    public void Count() {
        count = count + 1;
    public Integer getCount() {
        return count; 

I’m trying to implement this:
What are the imports required for this to work?

import com.haulmont.cuba.core.sys.AppContext;