It lists all the modules available in the workspace project. See the example code. This builds the build. With these concepts under our belts, we are ready to write some code, so let's fire up your Eclipse Liferay IDE. Liferay uses the OSGi container implementation of Equinox. The dependencies required by the production classes at runtime. Recently we used this feature to inject Liferay standard module functionality into our custom portlet.
Uploader: | Nikojora |
Date Added: | 9 March 2008 |
File Size: | 51.75 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 77730 |
Price: | Free* [*Free Regsitration Required] |
This directive in the bnd header exports the packages to the OSGi container, which can be accessed by other modules.
Download portlet-2.0.jar : portlet « p « Jar File Download
The dependencies required to compile the production source of the project. This builds the build.
As we have defined the dependencies in Eclipse, we should be able to choose our class, which we have binded. Since we have made com.

Hello, OSGi, Part 1: Eclipse would have generated this file automatically. With these concepts under our belts, we are actionrequesr to write some code, so let's fire up your Eclipse Liferay IDE. We achieved this by injecting wiki assets as a dependency into our custom portlet.

Adding this to build. A dependency in the provided jwr that is needed for compilation of a project, but it should not be distributed with it. Navigate to the Gradle Task view. Sample manifest as below. These are the directives or settings in the bnd header that are added automatically to manifest.
Dependencies required at compile time, but never required at runtime. By default, also includes the compile time dependencies. If the package is already exported, we don't need to do it again — we can immediately use the option CompileOnly instead of Compile in javas.
See the example code.
Download portletjar : portlet « p « Jar File Download
Create your Liferay Workspace project by following this link. Eclipse used Bndtools for generating the manifest. And the linked resources at the bottom of this page.
Liferay uses the OSGi container implementation of Equinox. It lists all the modules available in the workspace project. acrionrequest
Navigation
The following syntax extracts the jar and adds packages to our module. Since this package com. OSGi Open Services Gateway Initiative allows you to divide your application into multiple modules, and thus porglet easily manage cross-dependencies between them.
This tutorial focuses only on 'Compile' and 'CompileOnly'. The dependencies required by the production classes at runtime. Recently we used this feature to inject Liferay standard module functionality into our custom portlet. Thank you for supporting the partners who make SitePoint possible. This article was created in partnership with Ktree.
How to Inject OSGi Dependencies in Custom Portlets in Liferay 7 — SitePoint
actionrequeest As you can see in the later part of this article, for this dependency you need to configure it in both build. As the wiki assets are already in the OSGi container, we will use this option. This is something you need to specify in your build. This header is used to add external dependencies into our module.
No comments:
Post a Comment