Class: IIIFManifest::ManifestServiceLocator
- Inherits:
-
Object
- Object
- IIIFManifest::ManifestServiceLocator
show all
- Defined in:
- lib/iiif_manifest/manifest_service_locator.rb
Defined Under Namespace
Classes: InjectedFactory
Class Method Summary
collapse
Class Method Details
.canvas_builder ⇒ Object
132
133
134
135
136
137
138
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 132
def canvas_builder
InjectedFactory.new(
ManifestBuilder::CanvasBuilder,
iiif_canvas_factory: iiif_canvas_factory,
image_builder: image_builder
)
end
|
.canvas_builder_factory ⇒ Object
118
119
120
121
122
123
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 118
def canvas_builder_factory
ManifestBuilder::CanvasBuilderFactory.new(
composite_builder: composite_builder,
canvas_builder_factory: canvas_builder
)
end
|
.child_manifest_builder ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 20
def child_manifest_builder
InjectedFactory.new(
ManifestBuilder,
builders: record_property_builder,
top_record_factory: iiif_manifest_factory
)
end
|
.child_manifest_builder_factory ⇒ Object
63
64
65
66
67
68
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 63
def child_manifest_builder_factory
ManifestBuilder::ChildManifestBuilderFactory.new(
composite_builder: composite_builder,
child_manifest_builder: child_manifest_builder
)
end
|
.collection_manifest_builder ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 4
def collection_manifest_builder
InjectedFactory.new(
ManifestBuilder,
builders: collection_manifest_builders,
top_record_factory: iiif_collection_factory
)
end
|
.collection_manifest_builders ⇒ Object
55
56
57
58
59
60
61
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 55
def collection_manifest_builders
composite_builder_factory.new(
record_property_builder,
child_manifest_builder_factory,
composite_builder: composite_builder
)
end
|
.composite_builder ⇒ Object
.composite_builder_factory ⇒ Object
.deep_canvas_builder_factory ⇒ Object
125
126
127
128
129
130
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 125
def deep_canvas_builder_factory
ManifestBuilder::DeepCanvasBuilderFactory.new(
composite_builder: composite_builder,
canvas_builder_factory: canvas_builder
)
end
|
.iiif_annotation_factory ⇒ Object
.iiif_autocomplete_service_factory ⇒ Object
.iiif_canvas_factory ⇒ Object
.iiif_collection_factory ⇒ Object
.iiif_manifest_factory ⇒ Object
.iiif_range_factory ⇒ Object
.iiif_resource_factory ⇒ Object
.iiif_search_service_factory ⇒ Object
.iiif_service_factory ⇒ Object
.image_builder ⇒ Object
140
141
142
143
144
145
146
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 140
def image_builder
InjectedFactory.new(
ManifestBuilder::ImageBuilder,
iiif_annotation_factory: iiif_annotation_factory,
resource_builder_factory: resource_builder_factory
)
end
|
.image_service_builder_factory ⇒ Object
.manifest_builder ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 12
def manifest_builder
InjectedFactory.new(
ManifestBuilder,
builders: manifest_builders,
top_record_factory: iiif_manifest_factory
)
end
|
.manifest_builders ⇒ Object
Builders which receive a work as an argument to .new and return objects
that respond to
38
39
40
41
42
43
44
45
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 38
def manifest_builders
composite_builder_factory.new(
record_property_builder,
sequence_builder,
structure_builder,
composite_builder: composite_builder
)
end
|
.record_property_builder ⇒ Object
82
83
84
85
86
87
88
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 82
def record_property_builder
InjectedFactory.new(
ManifestBuilder::RecordPropertyBuilder,
iiif_search_service_factory: iiif_search_service_factory,
iiif_autocomplete_service_factory: iiif_autocomplete_service_factory
)
end
|
.resource_builder_factory ⇒ Object
148
149
150
151
152
153
154
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 148
def resource_builder_factory
InjectedFactory.new(
ManifestBuilder::ResourceBuilder,
iiif_resource_factory: iiif_resource_factory,
image_service_builder_factory: image_service_builder_factory
)
end
|
.sammelband_manifest_builder ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 28
def sammelband_manifest_builder
InjectedFactory.new(
ManifestBuilder,
builders: sammelband_manifest_builders,
top_record_factory: iiif_manifest_factory
)
end
|
.sammelband_manifest_builders ⇒ Object
47
48
49
50
51
52
53
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 47
def sammelband_manifest_builders
composite_builder_factory.new(
record_property_builder,
sammelband_sequence_builder,
composite_builder: composite_builder
)
end
|
.sammelband_sequence_builder ⇒ Object
106
107
108
109
110
111
112
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 106
def sammelband_sequence_builder
InjectedFactory.new(
ManifestBuilder::SequenceBuilder,
canvas_builder_factory: deep_canvas_builder_factory,
sequence_factory: sequence_factory
)
end
|
.sequence_builder ⇒ Object
98
99
100
101
102
103
104
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 98
def sequence_builder
InjectedFactory.new(
ManifestBuilder::SequenceBuilder,
canvas_builder_factory: canvas_builder_factory,
sequence_factory: sequence_factory
)
end
|
.sequence_factory ⇒ Object
.structure_builder ⇒ Object
90
91
92
93
94
95
96
|
# File 'lib/iiif_manifest/manifest_service_locator.rb', line 90
def structure_builder
InjectedFactory.new(
ManifestBuilder::StructureBuilder,
canvas_builder_factory: canvas_builder,
iiif_range_factory: iiif_range_factory
)
end
|