Class: OSGi::ExecutionEnvironment
- 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
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#packages ⇒ Object
readonly
Returns the value of attribute packages.
Instance Method Summary collapse
-
#initialize(name, description, packages) ⇒ ExecutionEnvironment
constructor
A new instance of ExecutionEnvironment.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
22 23 24 |
# File 'lib/buildr4osgi/osgi/execution_environment.rb', line 22 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/buildr4osgi/osgi/execution_environment.rb', line 22 def name @name end |
#packages ⇒ Object (readonly)
Returns the value of attribute packages.
22 23 24 |
# File 'lib/buildr4osgi/osgi/execution_environment.rb', line 22 def packages @packages end |