concept requirement in category osgi

This is an excerpt from Manning's book OSGi in Depth.
We’ll start this chapter by exploring development platforms and the benefits of using such platforms to develop software. We’ll then discuss the requirements of a platform intended for the development of enterprise-grade applications. Next, we’ll focus on the OSGi technology, expanding into its core pieces, called the OSGi framework, and its enterprise services. Finally, you’ll learn why OSGi is a good fit as a development platform, particularly in light of existing solutions, such as JEE. Let’s start by examining the basics.
As you’ve seen, a bundle’s exported packages define the bundle’s modularization signature; another way of looking at this is to consider the exported packages as the capabilities of a bundle and the imported packages as the requirements of a bundle.
Bundle bundle = bundleContext.getBundle(); BundleRevision revision = bundle.adapt(BundleRevision.class); List<BundleRequirement> requirements = revision.getDeclaredRequirements(BundleRevision.PACKAGE_NAMESPACE); for (BundleRequirement requirement : requirements) { Map<String, Object> attributes = requirement.getAttributes(); System.out.println("Package name = " + attributes.get("osgi.wiring.package")); System.out.println("Package version = " + attributes.get("version")); }In this case, the only difference is that you retrieve a list of requirements.