use of org.compiere.sla.SLACriteria in project adempiere by adempiere.
the class MSLACriteria method newInstance.
// getGoals
/**
* Create New Instance of SLA Criteria
* @return instanciated class
* @throws Exception
*/
public SLACriteria newInstance() throws Exception {
if (getClassname() == null || getClassname().length() == 0)
throw new AdempiereSystemError("No SLA Criteria Classname");
try {
Class clazz = Class.forName(getClassname());
SLACriteria retValue = (SLACriteria) clazz.newInstance();
return retValue;
} catch (Exception e) {
throw new AdempiereSystemError("Could not intsnciate SLA Criteria", e);
}
}
Aggregations