Class Constructor

Direct Known Subclasses:
CompactConstructor, CustomClassLoaderConstructor, EnvScalarConstructor

public class Constructor extends SafeConstructor
Construct a custom Java instance.
  • Constructor Details

    • Constructor

      @Deprecated public Constructor()
      Deprecated.
      use options
      Create
    • Constructor

      public Constructor(LoaderOptions loadingConfig)
      Create with options
      Parameters:
      loadingConfig - - config
    • Constructor

      public Constructor(Class<? extends Object> theRoot)
      Create Constructor for the specified class as the root.
      Parameters:
      theRoot - - the class (usually JavaBean) to be constructed
    • Constructor

      public Constructor(Class<? extends Object> theRoot, LoaderOptions loadingConfig)
      Create
      Parameters:
      theRoot - - the class to create (to be the root of the YAML document)
      loadingConfig - - options
    • Constructor

      @Deprecated public Constructor(TypeDescription theRoot)
      Deprecated.
      use options
      Create
      Parameters:
      theRoot - - the root class to create
    • Constructor

      public Constructor(TypeDescription theRoot, LoaderOptions loadingConfig)
      Create
      Parameters:
      theRoot - - the root class to create
      loadingConfig - options
    • Constructor

      public Constructor(TypeDescription theRoot, Collection<TypeDescription> moreTDs, LoaderOptions loadingConfig)
      Create with all possible arguments
      Parameters:
      theRoot - - the class (usually JavaBean) to be constructed
      moreTDs - - collection of classes used by the root class
      loadingConfig - - configuration
    • Constructor

      public Constructor(String theRoot) throws ClassNotFoundException
      Create Constructor for a class which does not have to be in the classpath or for a definition from a Spring ApplicationContext.
      Parameters:
      theRoot - fully qualified class name of the root class (usually JavaBean)
      Throws:
      ClassNotFoundException - if it cannot be loaded by the classloader
    • Constructor

      public Constructor(String theRoot, LoaderOptions loadingConfig) throws ClassNotFoundException
      Create
      Parameters:
      theRoot - - the main class to crate
      loadingConfig - - options
      Throws:
      ClassNotFoundException - if something goes wrong
  • Method Details