001
014
015 package com.liferay.portal.kernel.util;
016
017 import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
018
019 import java.lang.reflect.Method;
020
021
025 public class ServiceBeanMethodInvocationFactoryUtil {
026
027 public static ServiceBeanMethodInvocationFactory
028 getServiceBeanMethodInvocationFactory() {
029
030 PortalRuntimePermission.checkGetBeanProperty(
031 ServiceBeanMethodInvocationFactoryUtil.class);
032
033 return _serviceBeanMethodInvocationFactory;
034 }
035
036 public static Object proceed(
037 Object target, Class<?> targetClass, Method method,
038 Object[] arguments, String[] methodInterceptorBeanIds)
039 throws Exception {
040
041 return getServiceBeanMethodInvocationFactory().proceed(
042 target, targetClass, method, arguments, methodInterceptorBeanIds);
043 }
044
045 public void setServiceBeanMethodInvocationFactory(
046 ServiceBeanMethodInvocationFactory serviceBeanMethodInvocationFactory) {
047
048 PortalRuntimePermission.checkSetBeanProperty(getClass());
049
050 _serviceBeanMethodInvocationFactory =
051 serviceBeanMethodInvocationFactory;
052 }
053
054 private static ServiceBeanMethodInvocationFactory
055 _serviceBeanMethodInvocationFactory;
056
057 }