Skip to content

Instantly share code, notes, and snippets.

@jadianes
Created August 19, 2012 10:13
Show Gist options
  • Save jadianes/3394112 to your computer and use it in GitHub Desktop.
Save jadianes/3394112 to your computer and use it in GitHub Desktop.
The Dao factory interface
package com.jadianes.samples.genericdao.factory;
import com.jadianes.samples.genericdao.datasource.DataSource;
/**
* An abstract factory interface representing Dao factories for a particular data source. Implementations of this
* interface will typically offer methods to obtain Dao instances for the given DataSource. The use of
* factories is optional in the Dao libraries. They are actually traversal to different ModelEntities and vertical
* to specific data sources. However, they will increase the portability of business layers across multiple data sources.
*/
public interface DaoFactory<E extends DataSource> {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment