类 DataSourceUnwrapper

    • 方法详细资料

      • unwrap

        public static <T> T unwrap​(DataSource dataSource,
                                   Class<T> target)
        Return an object that implements the given target type, unwrapping delegate or proxy if necessary.
        类型参数:
        T - the target type
        参数:
        dataSource - the datasource to handle
        target - the type that the result must implement
        返回:
        an object that implements the target type or null