Class: Saxon::ItemType::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/saxon/item_type.rb

Constant Summary collapse

DEFAULT_SEMAPHORE =
Mutex.new

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#processorObject (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_factoryObject



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