4 ms·
If anyone is interested in how a real product is using OSGi have a look at Liferay [1]. It uses declarative services [2] with annotations to define components
by 4lejandrito 7y ago
If anyone is interested in how a real product is using OSGi have a look at Liferay [1].
It uses declarative services [2] with annotations to define components and their dependencies. I am not very familiar with the underlaying tooling but the end result is quite simple (see [3] for a simple component with 3 dependencies).
Disclaimer: I work at Liferay.
[1] https://github.com/liferay/liferay-portal https://github.com/liferay/liferay-portal
[2] https://osgi.org/specification/osgi.cmpn/7.0.0/service.component.html https://osgi.org/specification/osgi.cmpn/7.0.0/service.compo...
[3] https://github.com/liferay/liferay-portal/blob/5c29b7173777bc951c1caa442c7ce9ea1e8600a2/modules/apps/adaptive-media/adaptive-media-blogs-web/src/main/java/com/liferay/adaptive/media/blogs/web/internal/counter/BlogsAMImageCounter.java https://github.com/liferay/liferay-portal/blob/5c29b7173777b...
- twic 7y agoI believe that Liferay uses another bit of mirror-universe saucer tech, the Content Repository for Java API: https://jcp.org/en/jsr/detail?id=283 https://jcp.org/en/jsr/detail?id=283 This is essentially a hierarchical database - think something like an XML document, a hierarchy of nodes of particular types with attributes according to their type - but has a few really eye-opening features, like versioning, and branching and merging of versions. I'm not aware of any other kind of database (apart from VCSes!) that does that.
- generalpf 7y agoI used Apache Jackrabbit (a JCR) at a previous job to store PDFs of insurance rate manuals. We could tag them by province, line of business, whatever, and then query it quickly. Jackrabbit is a fantastic piece of software.
- HillRat 7y agoAnd Adobe’s AEM lives on top of Jackrabbit Oak, their next-gen JCR. For a lot of purposes, Jackrabbit Oak makes a pretty good general-purpose headless CMS in its own right (assuming you’re good with the JCR pragmatics).
- namdnay 7y agoThere’s a hidden world of Enterprise CMS systems, all built on JCR. Liferay, Adobe, Jahia etc... as you said, it’s like stepping into a parallel universe