Class DataSourceUnwrapper

    • Method Detail

      • 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.
        Type Parameters:
        T - the target type
        Parameters:
        dataSource - the datasource to handle
        target - the type that the result must implement
        Returns:
        an object that implements the target type or null