Class: OSGi::ExecutionEnvironment

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

Overview

The notion of profile in OSGi refers to the execution environment: SDK, loaded libraries in LD_LIBRARY_PATH. A set of default execution environments is defined by the OSGi specifications.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, description, packages) ⇒ ExecutionEnvironment

Returns a new instance of ExecutionEnvironment.



24
25
26
27
28
29
30
# File 'lib/buildr4osgi/osgi/execution_environment.rb', line 24

def initialize(name, description, packages)
  @name = name
  @description = description
  @packages = packages.is_a?(Array) ? packages : [packages]
  @packages.freeze
  freeze
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



22
23
24
# File 'lib/buildr4osgi/osgi/execution_environment.rb', line 22

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/buildr4osgi/osgi/execution_environment.rb', line 22

def name
  @name
end

#packagesObject (readonly)

Returns the value of attribute packages.



22
23
24
# File 'lib/buildr4osgi/osgi/execution_environment.rb', line 22

def packages
  @packages
end