Class: OSGi::OSGi::Options

Inherits:
Object show all
Defined in:
lib/buildr4osgi/osgi/registry.rb

Overview

The options for the osgi.options method

package_resolving_strategy:
  The package resolving strategy, it should be a symbol representing a module function in the OSGi::PackageResolvingStrategies module.
bundle_resolving_strategy:
  The bundle resolving strategy, it should be a symbol representing a module function in the OSGi::BundleResolvingStrategies module.
group_matchers:
  A set of Proc objects to match a bundle to a groupId for maven.
  The array is examined with the latest added Procs first.
  The first proc to return a non-nil answer is used, otherwise the OGSGI_GROUP_ID constant is used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



108
109
110
111
# File 'lib/buildr4osgi/osgi/registry.rb', line 108

def initialize
  @package_resolving_strategy = :all
  @bundle_resolving_strategy = :latest
end

Instance Attribute Details

#bundle_resolving_strategyObject

Returns the value of attribute bundle_resolving_strategy.



106
107
108
# File 'lib/buildr4osgi/osgi/registry.rb', line 106

def bundle_resolving_strategy
  @bundle_resolving_strategy
end

#package_resolving_strategyObject

Returns the value of attribute package_resolving_strategy.



106
107
108
# File 'lib/buildr4osgi/osgi/registry.rb', line 106

def package_resolving_strategy
  @package_resolving_strategy
end