Class AppDataSourceFactory

java.lang.Object
org.openurp.app.AppDataSourceFactory
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean

public class AppDataSourceFactory extends Object implements org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
  • Constructor Details

    • AppDataSourceFactory

      public AppDataSourceFactory()
  • Method Details

    • getObject

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

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

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<DataSource>
    • fetchConf

      public void fetchConf()
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • postInit

      public void postInit() throws Exception
      Throws:
      Exception
    • readConf

      public static DatasourceConfig readConf(InputStream is, String dsname, boolean isXML)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getUser

      public String getUser()
    • setUser

      public void setUser(String user)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getDriver

      public String getDriver()
    • setDriver

      public void setDriver(String driver)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getProps

      public Map<String,​String> getProps()
    • setProps

      public void setProps(Map<String,​String> props)