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

com.github.andyshao.neo4j.spring.config.Neo4jDaoFactoryBean Maven / Gradle / Ivy

There is a newer version: 3.0.0.RELEASE
Show newest version
package com.github.andyshao.neo4j.spring.config;

import com.github.andyshao.neo4j.domain.Neo4jDao;
import com.github.andyshao.neo4j.process.dao.DaoFactory;
import lombok.Setter;
import org.springframework.beans.factory.FactoryBean;

/**
 * Title: 
* Description:
* Copyright: Copyright(c) 2020/8/28 * Encoding: UNIX UTF-8 * * @author Andy.Shao */ @Setter public class Neo4jDaoFactoryBean implements FactoryBean { private Class daoInterface; private DaoFactory daoFactory; private Neo4jDao neo4jDao; @SuppressWarnings("unchecked") @Override public T getObject() throws Exception { return (T) this.daoFactory.buildDao(this.neo4jDao); } @Override public Class getObjectType() { return this.daoInterface; } @Override public boolean isSingleton() { return true; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy