Class MapfishPrintConstructor

java.lang.Object
org.yaml.snakeyaml.constructor.BaseConstructor
org.yaml.snakeyaml.constructor.SafeConstructor
org.yaml.snakeyaml.constructor.Constructor
org.mapfish.print.config.MapfishPrintConstructor

public final class MapfishPrintConstructor extends org.yaml.snakeyaml.constructor.Constructor
The interface to SnakeYaml that is responsible for creating the different objects during parsing the config yaml files.

The objects are created using spring dependency injection so that the methods are correctly wired using spring.

If an object has the interface HashConfiguration then this class will inject the configuration object after creating the object.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.yaml.snakeyaml.constructor.Constructor

    org.yaml.snakeyaml.constructor.Constructor.ConstructMapping, org.yaml.snakeyaml.constructor.Constructor.ConstructScalar, org.yaml.snakeyaml.constructor.Constructor.ConstructSequence, org.yaml.snakeyaml.constructor.Constructor.ConstructYamlObject

    Nested classes/interfaces inherited from class org.yaml.snakeyaml.constructor.SafeConstructor

    org.yaml.snakeyaml.constructor.SafeConstructor.ConstructUndefined, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlBinary, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlBool, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlFloat, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlInt, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlMap, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlNull, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlOmap, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlPairs, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlSeq, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlSet, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlStr, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlTimestamp
  • Field Summary

    Fields inherited from class org.yaml.snakeyaml.constructor.SafeConstructor

    undefinedConstructor

    Fields inherited from class org.yaml.snakeyaml.constructor.BaseConstructor

    composer, loadingConfig, NOT_INSTANTIATED_OBJECT, rootTag, typeDefinitions, typeTags, yamlClassConstructors, yamlConstructors, yamlMultiConstructors
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapfishPrintConstructor(org.springframework.context.ConfigurableApplicationContext context)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    newInstance(org.yaml.snakeyaml.nodes.Node node)
     

    Methods inherited from class org.yaml.snakeyaml.constructor.Constructor

    getClassForName, getClassForNode

    Methods inherited from class org.yaml.snakeyaml.constructor.SafeConstructor

    constructMapping2ndStep, constructSet2ndStep, createLongOrBigInteger, flattenMapping, flattenMapping, processDuplicateKeys, processDuplicateKeys

    Methods inherited from class org.yaml.snakeyaml.constructor.BaseConstructor

    addTypeDescription, checkData, constructArray, constructArrayStep2, constructDocument, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, finalizeConstruction, getConstructor, getData, getLoadingConfig, getPropertyUtils, getSingleData, isAllowDuplicateKeys, isEnumCaseSensitive, isExplicitPropertyUtils, isWrappedToRootException, newInstance, newInstance, newList, newMap, newSet, postponeMapFilling, postponeSetFilling, setAllowDuplicateKeys, setComposer, setEnumCaseSensitive, setPropertyUtils, setWrappedToRootException

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapfishPrintConstructor

      public MapfishPrintConstructor(org.springframework.context.ConfigurableApplicationContext context)
      Constructor.
      Parameters:
      context - the application context object for creating
  • Method Details

    • newInstance

      protected Object newInstance(org.yaml.snakeyaml.nodes.Node node)
      Overrides:
      newInstance in class org.yaml.snakeyaml.constructor.BaseConstructor