Example usage for com.liferay.portal.kernel.servlet.taglib.ui FormNavigatorEntry getKey

List of usage examples for com.liferay.portal.kernel.servlet.taglib.ui FormNavigatorEntry getKey

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.servlet.taglib.ui FormNavigatorEntry getKey.

Prototype

public String getKey();

Source Link

Document

Returns the key for the form navigator entry.

Usage

From source file:com.liferay.frontend.taglib.form.navigator.internal.configuration.FormNavigatorEntryConfigurationHelperImpl.java

License:Open Source License

@Activate
protected void activate(BundleContext bundleContext) {
    _formNavigatorEntriesMap = ServiceTrackerMapFactory.openSingleValueMap(bundleContext,
            FormNavigatorEntry.class, null, (serviceReference, emitter) -> {
                FormNavigatorEntry formNavigatorEntry = bundleContext.getService(serviceReference);

                emitter.emit(_getKey(formNavigatorEntry.getKey(), formNavigatorEntry.getFormNavigatorId()));

                bundleContext.ungetService(serviceReference);
            });/* w w  w  . j  a va 2 s. c om*/

    _formNavigatorContextProviderMap = ServiceTrackerMapFactory.openSingleValueMap(bundleContext,
            FormNavigatorContextProvider.class, FormNavigatorContextConstants.FORM_NAVIGATOR_ID);
}