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

com.nepxion.discovery.plugin.strategy.adapter.DefaultDiscoveryEnabledStrategy Maven / Gradle / Ivy

There is a newer version: 6.22.0
Show newest version
package com.nepxion.discovery.plugin.strategy.adapter;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import com.nepxion.discovery.plugin.framework.adapter.PluginAdapter; import com.nepxion.discovery.plugin.strategy.context.StrategyContextHolder; public abstract class DefaultDiscoveryEnabledStrategy implements DiscoveryEnabledStrategy { @Autowired private ApplicationContext applicationContext; @Autowired protected PluginAdapter pluginAdapter; protected StrategyContextHolder strategyContextHolder; @PostConstruct private void initialize() { strategyContextHolder = applicationContext.getBean(StrategyContextHolder.class); } public PluginAdapter getPluginAdapter() { return pluginAdapter; } public StrategyContextHolder getStrategyContextHolder() { return strategyContextHolder; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy