mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
Batch changes from of review comments - there are more
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
## Transformer selection strategy
|
||||
# Transformer selection strategy
|
||||
|
||||
The TransformRegistry uses t-config to choose which Transformer will be
|
||||
used. A transformer definition contains a supported list of source and
|
||||
@@ -6,12 +6,13 @@ target Media Types. This is used for the most basic selection. It is further
|
||||
refined by checking that the definition also supports transform options (the
|
||||
parameters) that have been supplied in a transform request.
|
||||
|
||||
~~~
|
||||
~~~text
|
||||
Transformer 1 defines options: Op1, Op2
|
||||
Transformer 2 defines options: Op1, Op2, Op3, Op4
|
||||
|
||||
Transform request provides values for options: Op2, Op3
|
||||
~~~
|
||||
|
||||
If we assume both transformers support the required source and target Media
|
||||
Types, Transformer 2 will be selected because it knows about all the supplied
|
||||
options. The definition may also specify that some options are required or
|
||||
@@ -24,4 +25,4 @@ the transforms consuming too many resources.
|
||||
|
||||
The configuration may also specify a priority which will be used in
|
||||
Transformer selection if there are a number of possible transformers. The
|
||||
highest priority is the one with the lowest number.
|
||||
highest priority is the one with the lowest number.
|
||||
|
Reference in New Issue
Block a user