/**
* 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.sampleservicebuilder.service.base;
import aQute.bnd.annotation.ProviderType;
import com.liferay.sampleservicebuilder.service.FooServiceUtil;
import java.util.Arrays;
/**
* @author Brian Wing Shun Chan
* @generated
*/
@ProviderType
public class FooServiceClpInvoker {
public FooServiceClpInvoker() {
_methodName36 = "getOSGiServiceIdentifier";
_methodParameterTypes36 = new String[] { };
_methodName41 = "getFoos";
_methodParameterTypes41 = new String[] { };
_methodName42 = "getUser";
_methodParameterTypes42 = new String[] { "long" };
_methodName43 = "getUserSitesGroups";
_methodParameterTypes43 = new String[] { };
}
public Object invokeMethod(String name, String[] parameterTypes,
Object[] arguments) throws Throwable {
if (_methodName36.equals(name) &&
Arrays.deepEquals(_methodParameterTypes36, parameterTypes)) {
return FooServiceUtil.getOSGiServiceIdentifier();
}
if (_methodName41.equals(name) &&
Arrays.deepEquals(_methodParameterTypes41, parameterTypes)) {
return FooServiceUtil.getFoos();
}
if (_methodName42.equals(name) &&
Arrays.deepEquals(_methodParameterTypes42, parameterTypes)) {
return FooServiceUtil.getUser(((Long)arguments[0]).longValue());
}
if (_methodName43.equals(name) &&
Arrays.deepEquals(_methodParameterTypes43, parameterTypes)) {
return FooServiceUtil.getUserSitesGroups();
}
throw new UnsupportedOperationException();
}
private String _methodName36;
private String[] _methodParameterTypes36;
private String _methodName41;
private String[] _methodParameterTypes41;
private String _methodName42;
private String[] _methodParameterTypes42;
private String _methodName43;
private String[] _methodParameterTypes43;
}