/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.words.service.base; import aQute.bnd.annotation.ProviderType; import com.liferay.words.service.WordsServiceUtil; import java.util.Arrays; /** * @author Brian Wing Shun Chan * @generated */ @ProviderType public class WordsServiceClpInvoker { public WordsServiceClpInvoker() { _methodName20 = "getOSGiServiceIdentifier"; _methodParameterTypes20 = new String[] { }; _methodName23 = "checkSpelling"; _methodParameterTypes23 = new String[] { "java.lang.String" }; _methodName24 = "getSuggestions"; _methodParameterTypes24 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { if (_methodName20.equals(name) && Arrays.deepEquals(_methodParameterTypes20, parameterTypes)) { return WordsServiceUtil.getOSGiServiceIdentifier(); } if (_methodName23.equals(name) && Arrays.deepEquals(_methodParameterTypes23, parameterTypes)) { return WordsServiceUtil.checkSpelling((java.lang.String)arguments[0]); } if (_methodName24.equals(name) && Arrays.deepEquals(_methodParameterTypes24, parameterTypes)) { return WordsServiceUtil.getSuggestions((java.lang.String)arguments[0]); } throw new UnsupportedOperationException(); } private String _methodName20; private String[] _methodParameterTypes20; private String _methodName23; private String[] _methodParameterTypes23; private String _methodName24; private String[] _methodParameterTypes24; }