br.com.andrewribeiro.ribrest.dao.CRUDCenterImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Ribrest Show documentation
Show all versions of Ribrest Show documentation
Ribrest Framework - A simple Java framework that truly improve your productivity when developing restful based webservices.
package br.com.andrewribeiro.ribrest.dao;
import br.com.andrewribeiro.ribrest.dao.abstracts.AbstractPersistenceCenter;
import br.com.andrewribeiro.ribrest.dao.interfaces.DAO;
/**
*
* @author Andrew Ribeiro
*/
public class CRUDCenterImpl extends AbstractPersistenceCenter {
@Override
public DAO create() {
if (daoClass == null) {
throw new RuntimeException("");
}
try {
return (DAO) daoClass.newInstance();
} catch (InstantiationException | IllegalAccessException ex) {
throw new RuntimeException(ex.getMessage());
}
}
}