Class ClassLoadConfig


  • public class ClassLoadConfig
    extends Object
    Helper to find classes taking into account the context class loader.
    • Constructor Detail

      • ClassLoadConfig

        public ClassLoadConfig()
        Construct with the default classLoader search with context classLoader first.
      • ClassLoadConfig

        public ClassLoadConfig​(ClassLoader classLoader)
        Specify the classLoader to use for class detection and new instance creation.
    • Method Detail

      • isJavaTimePresent

        public boolean isJavaTimePresent()
        Return true if the Java.time types are available and should be supported.
      • isJava7Present

        public boolean isJava7Present()
        Return true if Java7 is present.
      • isJodaTimePresent

        public boolean isJodaTimePresent()
        Return true if the Joda types are available and should be supported.
      • isJavaxPostConstructPresent

        public boolean isJavaxPostConstructPresent()
        Return true if javax PostConstruct annotation is present (maybe not in java9). If not we don't support PostConstruct lifecycle events.
      • isJavaxJAXBPresent

        public boolean isJavaxJAXBPresent()
        Return true if javax JAXB is present (maybe not in java9). If not we don't try to parse or support 'extra ddl'.
      • isJacksonAnnotationsPresent

        public boolean isJacksonAnnotationsPresent()
        Return true if Jackson annotations like JsonIgnore are present.
      • newInstance

        public Object newInstance​(String className)
        Return a new instance of the class using the default constructor.
      • isPresent

        public boolean isPresent​(String className)
        Return true if the given class is present.