Example usage for com.liferay.portal.kernel.bean BeanLocator locate

List of usage examples for com.liferay.portal.kernel.bean BeanLocator locate

Introduction

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

Prototype

public Object locate(String name) throws BeanLocatorException;

Source Link

Usage

From source file:au.com.permeance.liferay.portlet.controller.FluentReflection.java

License:Open Source License

public static BeanLocatorReflection within(final BeanLocator b) {
    return new BeanLocatorReflection() {

        @Override// www.ja va 2 s .  co m
        public FluentReflectionInvokation on(final String beanName) {
            Object bean = b.locate(beanName);
            return new ReflectionInvokation(bean);
        }

    };
}