Example usage for com.liferay.portal.kernel.bean BeanLocatorException BeanLocatorException

List of usage examples for com.liferay.portal.kernel.bean BeanLocatorException BeanLocatorException

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.bean BeanLocatorException BeanLocatorException.

Prototype

public BeanLocatorException(Throwable cause) 

Source Link

Usage

From source file:com.liferay.util.bean.PortletBeanLocatorUtil.java

License:Open Source License

public static Object locate(String name) throws BeanLocatorException {
    if (_beanLocator == null) {
        _log.error("BeanLocator is null");

        throw new BeanLocatorException("BeanLocator has not been set");
    } else {/*  w  ww . ja va  2 s  . c  om*/
        return _beanLocator.locate(name);
    }
}