Class JpaPooledDataSourceFactoryBeanRegistrar.PooledDatasourceFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware
    Enclosing class:
    JpaPooledDataSourceFactoryBeanRegistrar

    public static class JpaPooledDataSourceFactoryBeanRegistrar.PooledDatasourceFactoryBean
    extends Object
    implements org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware
    • Constructor Detail

      • PooledDatasourceFactoryBean

        public PooledDatasourceFactoryBean​(String routeKey)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • getObject

        public DataSource getObject()
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<DataSource>
      • getObjectType

        public Class<? extends DataSource> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<DataSource>
      • getRouteKey

        public String getRouteKey()
      • getType

        public Class<com.zaxxer.hikari.HikariDataSource> getType()
      • getDelegate

        @Nullable
        public DataSource getDelegate()
      • getDataSource

        public DataSource getDataSource()
      • getEnvironment

        public org.springframework.core.env.Environment getEnvironment()
      • setType

        public void setType​(Class<com.zaxxer.hikari.HikariDataSource> type)
      • setDelegate

        public void setDelegate​(@Nullable
                                DataSource delegate)
      • setDataSource

        public void setDataSource​(DataSource dataSource)
      • setInitializers

        public void setInitializers​(@Nullable
                                    org.springframework.beans.factory.ObjectProvider<ConnectionSchemaInitializer> initializers)
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object