public class ClassLoadConfig extends Object
Constructor and Description |
---|
ClassLoadConfig()
Construct with the default classLoader search with context classLoader first.
|
ClassLoadConfig(ClassLoader classLoader)
Specify the classLoader to use for class detection and new instance creation.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Return the classLoader to use for service loading etc.
|
Enumeration<URL> |
getResources(String name)
Return the resources for the given name.
|
boolean |
isJacksonAnnotationsPresent()
Return true if Jackson annotations like JsonIgnore are present.
|
boolean |
isJacksonObjectMapperPresent()
Return true if Jackson ObjectMapper is present.
|
boolean |
isJava7Present()
Return true if Java7 is present.
|
boolean |
isJavaTimePresent()
Return true if the Java.time types are available and should be supported.
|
boolean |
isJavaxJAXBPresent()
Return true if javax JAXB is present (maybe not in java9).
|
boolean |
isJavaxPostConstructPresent()
Return true if javax PostConstruct annotation is present (maybe not in java9).
|
boolean |
isJavaxValidationAnnotationsPresent()
Return true if javax validation annotations like Size and NotNull are present.
|
boolean |
isJodaTimePresent()
Return true if the Joda types are available and should be supported.
|
boolean |
isPresent(String className)
Return true if the given class is present.
|
Object |
newInstance(String className)
Return a new instance of the class using the default constructor.
|
public ClassLoadConfig()
public ClassLoadConfig(ClassLoader classLoader)
public boolean isJavaTimePresent()
public boolean isJava7Present()
public boolean isJodaTimePresent()
public boolean isJavaxValidationAnnotationsPresent()
public boolean isJavaxPostConstructPresent()
public boolean isJavaxJAXBPresent()
public boolean isJacksonAnnotationsPresent()
public boolean isJacksonObjectMapperPresent()
public Object newInstance(String className)
public Enumeration<URL> getResources(String name) throws IOException
IOException
public ClassLoader getClassLoader()
Copyright © 2019. All rights reserved.