public class TransformerSelectorImpl extends Object implements TransformerSelector
Prior to the introduction of this class the transformation time was only kept
for each transformer. There was no threshold and there was a concept of
'Explicit' transformers, which would cause all other transformers to be discarded.
It is still possible to disable transformers by giving adding unsupported mappings
as has been done for transformers that would not have been used in the past as
there existed one or more 'explicit' transformers (a concept not used by this
TransformerSelector). By default a transformer has a priority of 10
.
Old 'Explicit' transformers have been given a priority of 5
.
Constructor and Description |
---|
TransformerSelectorImpl() |
Modifier and Type | Method and Description |
---|---|
List<ContentTransformer> |
selectTransformers(String sourceMimetype,
long sourceSize,
String targetMimetype,
TransformationOptions options)
Returns a sorted list of transformers that identifies the order in which transformers
should be tried.
|
void |
setContentTransformerRegistry(ContentTransformerRegistry contentTransformerRegistry) |
void |
setTransformerConfig(TransformerConfig transformerConfig) |
void |
setTransformerDebug(TransformerDebug transformerDebug) |
public void setTransformerConfig(TransformerConfig transformerConfig)
public void setContentTransformerRegistry(ContentTransformerRegistry contentTransformerRegistry)
public void setTransformerDebug(TransformerDebug transformerDebug)
public List<ContentTransformer> selectTransformers(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options)
TransformerSelector
selectTransformers
in interface TransformerSelector
options
- transformation optionsCopyright © 2005–2017 Alfresco Software. All rights reserved.