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

com.xlrit.gears.engine.meta.SpringMetaManager Maven / Gradle / Ivy

package com.xlrit.gears.engine.meta;

import java.util.List;

import jakarta.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xlrit.gears.base.repository.Repository;

@Component
@SuppressWarnings("rawtypes")
public class SpringMetaManager extends MetaManager {

	@Autowired
	private List repositories;

	@PostConstruct
	@SuppressWarnings("unchecked")
	public void initialize() {
		for (Repository repository : repositories) {
			Class entityType = repository.getEntityType();
			if (this.isEntity(entityType)) {
				this.registerEntity(entityType, repository);
			}
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy