Class: Saxon::ItemType::Factory
- Inherits:
-
Object
- Object
- Saxon::ItemType::Factory
- Defined in:
- lib/saxon/item_type.rb
Constant Summary collapse
- DEFAULT_SEMAPHORE =
Mutex.new
Instance Attribute Summary collapse
-
#processor ⇒ Object
readonly
Returns the value of attribute processor.
Instance Method Summary collapse
-
#initialize(processor) ⇒ Factory
constructor
A new instance of Factory.
- #s9_factory ⇒ Object
Constructor Details
#initialize(processor) ⇒ Factory
Returns a new instance of Factory.
188 189 190 |
# File 'lib/saxon/item_type.rb', line 188 def initialize(processor) @processor = processor end |
Instance Attribute Details
#processor ⇒ Object (readonly)
Returns the value of attribute processor.
186 187 188 |
# File 'lib/saxon/item_type.rb', line 186 def processor @processor end |
Instance Method Details
#s9_factory ⇒ Object
192 193 194 195 196 197 |
# File 'lib/saxon/item_type.rb', line 192 def s9_factory return @s9_factory if instance_variable_defined?(:@s9_factory) DEFAULT_SEMAPHORE.synchronize do @s9_factory = S9API::ItemTypeFactory.new(processor.to_java) end end |