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

com.github.javaclub.configcenter.spring.annotation.ConfigServerRegistrar Maven / Gradle / Ivy

The newest version!
/*
 * @(#)ConfigServerRegistrar.java	2021-8-20
 *
 * Copyright (c) 2021. All Rights Reserved.
 *
 */

package com.github.javaclub.configcenter.spring.annotation;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.type.AnnotationMetadata;

import com.github.javaclub.configcenter.spring.spi.ConfigServerRegistrarHelper;
import com.github.javaclub.configcenter.spring.utils.ServiceBootstrap;

/**
 * ConfigServerRegistrar
 *
 * @author Gerald Chen
 * @version $Id: ConfigServerRegistrar.java 2021-8-20 14:45:52 Exp $
 */
public class ConfigServerRegistrar implements ImportBeanDefinitionRegistrar {
	
	private ConfigServerRegistrarHelper helper = ServiceBootstrap.loadPrimary(ConfigServerRegistrarHelper.class);

	@Override
	public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
		helper.registerBeanDefinitions(importingClassMetadata, registry);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy