Liferay: perform an action when a -LocalServiceUtil is available
问题 I have implemented a functional Liferay service using service builder and I want to call a method on the -LocalServiceUtil class just as soon as I possibly can. This is a task I wish to perform when the service starts and also when the service is redeployed. Even though all the methods on the -LocalServiceUtil class are static, they will throw a BeanLocatorException if they are called too soon. com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet