package br.mp.mprj.portal.portlet.gestaomensagens.service.service.base;

import br.mp.mprj.portal.portlet.gestaomensagens.service.service.TemplateServiceUtil;

import java.util.Arrays;

/**
 * @author Henrique Simoes
 * @generated
 */
public class TemplateServiceClpInvoker {
    private String _methodName48;
    private String[] _methodParameterTypes48;
    private String _methodName49;
    private String[] _methodParameterTypes49;
    private String _methodName54;
    private String[] _methodParameterTypes54;

    public TemplateServiceClpInvoker() {
        _methodName48 = "getBeanIdentifier";

        _methodParameterTypes48 = new String[] {  };

        _methodName49 = "setBeanIdentifier";

        _methodParameterTypes49 = new String[] { "java.lang.String" };

        _methodName54 = "getTemplatePorNome";

        _methodParameterTypes54 = new String[] { "java.lang.String" };
    }

    public Object invokeMethod(String name, String[] parameterTypes,
        Object[] arguments) throws Throwable {
        if (_methodName48.equals(name) &&
                Arrays.deepEquals(_methodParameterTypes48, parameterTypes)) {
            return TemplateServiceUtil.getBeanIdentifier();
        }

        if (_methodName49.equals(name) &&
                Arrays.deepEquals(_methodParameterTypes49, parameterTypes)) {
            TemplateServiceUtil.setBeanIdentifier((java.lang.String) arguments[0]);

            return null;
        }

        if (_methodName54.equals(name) &&
                Arrays.deepEquals(_methodParameterTypes54, parameterTypes)) {
            return TemplateServiceUtil.getTemplatePorNome((java.lang.String) arguments[0]);
        }

        throw new UnsupportedOperationException();
    }
}
