Search in sources :

Example 1 with Extend

use of org.compiere.cm.Extend in project adempiere by adempiere.

the class RequestAnalyzer method getProcClass.

public org.compiere.cm.Extend getProcClass() {
    if (m_procClassName == null)
        return null;
    try {
        Class thisProcClass = Class.forName(m_procClassName);
        boolean errorLogged = false;
        try {
            Constructor constructor = thisProcClass.getDeclaredConstructor(new Class[] { HttpServletRequest.class, Properties.class });
            Extend procClass = (Extend) constructor.newInstance(new Object[] { m_request, m_ctx });
            return procClass;
        } catch (Exception e) {
        }
        return null;
    } catch (Exception e) {
    }
    return null;
}
Also used : Extend(org.compiere.cm.Extend) Constructor(java.lang.reflect.Constructor) MalformedURLException(java.net.MalformedURLException)

Aggregations

Constructor (java.lang.reflect.Constructor)1 MalformedURLException (java.net.MalformedURLException)1 Extend (org.compiere.cm.Extend)1