All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jspringbot.keyword.expression.plugin.VariableProviderManager Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
package org.jspringbot.keyword.expression.plugin;

import org.springframework.context.ApplicationContext;

import java.util.HashMap;
import java.util.Map;

public class VariableProviderManager {
    private ApplicationContext context;

    public VariableProviderManager(ApplicationContext context) {
        this.context = context;
    }

    public Map getVariables() {
        Map handlers = context.getBeansOfType(VariableProviderRegistryBean.class);
        Map variables = new HashMap();
        for(VariableProviderRegistryBean bean : handlers.values()) {
            variables.putAll(bean.getHandler().getVariables());
        }

        return variables;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy