Class Constructor

Direct Known Subclasses:
CompactConstructor, CustomClassLoaderConstructor, EnvScalarConstructor

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

    • Constructor

      public Constructor(LoaderOptions loadingConfig)
      Create with options
      Parameters:
      loadingConfig - - config
    • 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

      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, LoaderOptions loadingConfig) throws ClassNotFoundException
      Create
      Parameters:
      theRoot - - the main class to crate
      loadingConfig - - options
      Throws:
      ClassNotFoundException - if something goes wrong
  • Method Details