io.imunity.vaadin.endpoint.common.SpringContextProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Common Vaadin endpoint components
The newest version!
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.endpoint.common;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
@Component
public class SpringContextProvider implements ApplicationContextAware
{
private static ApplicationContext context;
public static ApplicationContext getContext()
{
return context;
}
@Override
public void setApplicationContext(ApplicationContext context) throws BeansException
{
SpringContextProvider.context = context;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy