Class LocalCombinedConfig


  • public class LocalCombinedConfig
    extends CombinedConfig
    Extends the standard CombinedConfig to add in removal of overridden or invalid transforms.
    Author:
    adavis
    • Constructor Detail

      • LocalCombinedConfig

        public LocalCombinedConfig​(org.apache.commons.logging.Log log)
    • Method Detail

      • removeInvalidTransformer

        protected int removeInvalidTransformer​(int i,
                                               List<CombinedConfig.TransformAndItsOrigin> combinedTransformers,
                                               TransformServiceRegistryImpl registry,
                                               CombinedConfig.TransformAndItsOrigin transformAndItsOrigin,
                                               org.alfresco.transform.client.model.config.Transformer transformer,
                                               String name,
                                               String readFrom,
                                               boolean isPipeline,
                                               boolean isFailover)
        Discards a transformer that is invalid (e.g. T-Engines with the same name, baseUrl has not been specified on a T-Engine transform) or overridden an earlier transform with the same name). If the overridden transform is from a T-Engine and the overriding transform is not a pipeline or a failover, we also copy the baseUrl from the overridden transform so that the original T-Engine will still be called.
        Overrides:
        removeInvalidTransformer in class CombinedConfig
        Parameters:
        i - the current transform's index into combinedTransformers.
        combinedTransformers - the full list of transformers in the order they were read.
        registry - that wil hold the transforms.
        transformAndItsOrigin - the current combinedTransformers element.
        transformer - the current transformer.
        name - the current transformer's name.
        readFrom - where the current transformer was read from.
        isPipeline - if the current transform is a pipeline.
        isFailover - if the current transform is a failover.
        Throws:
        IllegalArgumentException - if the current transform has a problem and should be removed.