app/src/main/java/db/juhaku/juhakudb/repository/RepositoryFactory.java
/**
     * Create custom repository implementation for interface by given implementing class. Class must
     * have constructor with one parameter for {@link EntityManager}.
     *
     * @param impl Class of implementing class of repository.
     * @param em Instance of{@link EntityManager}.
     * @return Custom repository implementation.
     *
     * @since 1.3.0
     *
     * @hide
     */
Create custom repository implementation for interface by given implementing class. Class must
have constructor with one parameter for  EntityManager.

@param impl Class of implementing class of repository.
@param em Instance of EntityManager.
@return Custom repository implementation.



@hide
Create custom repository implementation for interface by given implementing class . Class must have constructor with one parameter for EntityManager . @param impl Class of implementing class of repository . @param em Instance of EntityManager . @return Custom repository implementation . @hide
private static <T> T customImpl(Class<T> impl, EntityManager em) {
        T repository = ReflectionUtils.instantiateConstructor(impl, em);
        if (repository == null) {
            Log.w(RepositoryFactory.class.getName(), "could not initialize custom impl: "
                    + impl + " with params: " + em);
        }
        return repository;
    }
private static < T > T customImpl ( Class < T > impl , EntityManager em ) { T repository = ReflectionUtils . instantiateConstructor ( impl , em ) ; if ( repository == null ) { Log . w ( RepositoryFactory . class . getName ( ) , "could not initialize custom impl: " + impl + " with params: " + em ) ; } return repository ; }
Create custom repository implementation for interface by given implementing class.
Create custom repository implementation for interface by given implementing class .