org.jboss.osgi.resolver
Interface XModuleBuilder


public interface XModuleBuilder

A builder for resolver modules

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Method Summary
 XBundleCapability addBundleCapability(String symbolicName, org.osgi.framework.Version version)
          Add a bundle capability
 void addBundleClassPath(String... path)
          Add a Constants.BUNDLE_CLASSPATH element
 XRequireBundleRequirement addBundleRequirement(String symbolicName, Map<String,String> dirs, Map<String,Object> atts)
          Add a Constants.REQUIRE_BUNDLE requirement
 XPackageRequirement addDynamicPackageRequirement(String name, Map<String,Object> atts)
          Add a Constants.DYNAMICIMPORT_PACKAGE requirement
 XFragmentHostRequirement addFragmentHostRequirement(String symbolicName, Map<String,String> dirs, Map<String,Object> atts)
          Add a Constants.FRAGMENT_HOST requirement
 XPackageCapability addPackageCapability(String name, Map<String,String> dirs, Map<String,Object> atts)
          Add a Constants.EXPORT_PACKAGE capability
 XPackageRequirement addPackageRequirement(String name, Map<String,String> dirs, Map<String,Object> atts)
          Add a Constants.IMPORT_PACKAGE requirement
 XModule createModule(long moduleId, Manifest manifest)
          Get a new module from an OSGi manifest
 XModule createModule(long moduleId, OSGiMetaData metadata)
          Get a new module from OSGi metadata
 XModule createModule(long moduleId, String symbolicName, org.osgi.framework.Version version)
          Get a new module and associate it with this builder
 XModule getModule()
          Get the final module from the builder
 

Method Detail

createModule

XModule createModule(long moduleId,
                     Manifest manifest)
                     throws org.osgi.framework.BundleException
Get a new module from an OSGi manifest

Parameters:
moduleId - The provided module id
manifest - The manifest
Throws:
org.osgi.framework.BundleException

createModule

XModule createModule(long moduleId,
                     OSGiMetaData metadata)
                     throws org.osgi.framework.BundleException
Get a new module from OSGi metadata

Parameters:
moduleId - The provided module id
metadata - The metadata
Throws:
org.osgi.framework.BundleException

createModule

XModule createModule(long moduleId,
                     String symbolicName,
                     org.osgi.framework.Version version)
Get a new module and associate it with this builder

Parameters:
moduleId - The provided module id
symbolicName - The module symbolic name
version - The module version

addBundleCapability

XBundleCapability addBundleCapability(String symbolicName,
                                      org.osgi.framework.Version version)
Add a bundle capability

Parameters:
symbolicName - The bundle symbolic name
version - The bundle version

addBundleRequirement

XRequireBundleRequirement addBundleRequirement(String symbolicName,
                                               Map<String,String> dirs,
                                               Map<String,Object> atts)
Add a Constants.REQUIRE_BUNDLE requirement

Parameters:
symbolicName - The bundle symbolic name
dirs - The directives
atts - The attributes

addFragmentHostRequirement

XFragmentHostRequirement addFragmentHostRequirement(String symbolicName,
                                                    Map<String,String> dirs,
                                                    Map<String,Object> atts)
Add a Constants.FRAGMENT_HOST requirement

Parameters:
symbolicName - The bundle symbolic name
dirs - The directives
atts - The attributes

addPackageCapability

XPackageCapability addPackageCapability(String name,
                                        Map<String,String> dirs,
                                        Map<String,Object> atts)
Add a Constants.EXPORT_PACKAGE capability

Parameters:
name - The package name
dirs - The directives
atts - The attributes

addPackageRequirement

XPackageRequirement addPackageRequirement(String name,
                                          Map<String,String> dirs,
                                          Map<String,Object> atts)
Add a Constants.IMPORT_PACKAGE requirement

Parameters:
name - The package name
dirs - The directives
atts - The attributes

addDynamicPackageRequirement

XPackageRequirement addDynamicPackageRequirement(String name,
                                                 Map<String,Object> atts)
Add a Constants.DYNAMICIMPORT_PACKAGE requirement

Parameters:
name - The package name
atts - The attributes

addBundleClassPath

void addBundleClassPath(String... path)
Add a Constants.BUNDLE_CLASSPATH element


getModule

XModule getModule()
Get the final module from the builder



Copyright © 2010. All Rights Reserved.