接口 RuntimeHolder

所有已知实现类:
AbstractRuntimeHolder

public interface RuntimeHolder
  • 字段详细资料

  • 方法详细资料

    • temporary

      DataRuntime temporary(Object datasource, String database, DriverAdapter adapter) throws Exception
      注册数据源 子类覆盖 生成简单的DataRuntime不注册到spring
      参数:
      datasource - 数据源, 如DruidDataSource, MongoClient, es.RestClient
      database - 数据库, jdbc类型数据源不需要
      adapter - 如果确认数据库类型可以提供如 new MySQLAdapter(), 如果不提供则根据ds检测
      返回:
      DataRuntime
      抛出:
      Exception - 异常 Exception
    • destroy

      static boolean destroy(String datasource) throws Exception
      抛出:
      Exception
    • runtimes

      static Map<String,DataRuntime> runtimes(String origin)
      从origin复制的数据源
      参数:
      origin - 源
      返回:
      Map
    • runtime

      static DataRuntime runtime()
    • runtime

      static DataRuntime runtime(String datasource)
      数据源相关的runtime
      参数:
      datasource - 数据源
      返回:
      DataRuntime
    • contains

      static boolean contains(String key)
      runtime是否存在
      参数:
      key - key
      返回:
      boolean
    • keys

      static List<String> keys()
      全部runtime.key
      返回:
      list