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.
39 40 41 |
# File 'lib/saxon/item_type.rb', line 39 def initialize(processor) @processor = processor end |
Instance Attribute Details
#processor ⇒ Object (readonly)
Returns the value of attribute processor.
37 38 39 |
# File 'lib/saxon/item_type.rb', line 37 def processor @processor end |
Instance Method Details
#s9_factory ⇒ Object
43 44 45 46 47 48 |
# File 'lib/saxon/item_type.rb', line 43 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 |