public class ObjectFactory extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addExternalClassLoader(ClassLoader classLoader)
Adds a custom classloader to the collection of classloaders searched for "external" classes.
|
static CommentGenerator |
createCommentGenerator(Context context) |
static ConnectionFactory |
createConnectionFactory(Context context) |
static Object |
createExternalObject(String type) |
static Object |
createInternalObject(String type) |
static IntrospectedColumn |
createIntrospectedColumn(Context context) |
static IntrospectedTable |
createIntrospectedTable(TableConfiguration tableConfiguration,
FullyQualifiedTable table,
Context context) |
static IntrospectedTable |
createIntrospectedTableForValidation(Context context)
Creates an introspected table implementation that is only usable for validation .
|
static JavaFormatter |
createJavaFormatter(Context context) |
static JavaTypeResolver |
createJavaTypeResolver(Context context,
List<String> warnings) |
static KotlinFormatter |
createKotlinFormatter(Context context) |
static Plugin |
createPlugin(Context context,
PluginConfiguration pluginConfiguration) |
static XmlFormatter |
createXmlFormatter(Context context) |
static Class<?> |
externalClassForName(String type)
Returns a class loaded from the context classloader, or the classloader supplied by a client.
|
static URL |
getResource(String resource) |
static Class<?> |
internalClassForName(String type) |
static void |
reset()
Clears the class loaders.
|
public static void reset()
public static void addExternalClassLoader(ClassLoader classLoader)
classLoader
- the class loaderpublic static Class<?> externalClassForName(String type) throws ClassNotFoundException
type
- the typeClassNotFoundException
- the class not found exceptionpublic static Class<?> internalClassForName(String type) throws ClassNotFoundException
ClassNotFoundException
public static JavaTypeResolver createJavaTypeResolver(Context context, List<String> warnings)
public static Plugin createPlugin(Context context, PluginConfiguration pluginConfiguration)
public static CommentGenerator createCommentGenerator(Context context)
public static ConnectionFactory createConnectionFactory(Context context)
public static JavaFormatter createJavaFormatter(Context context)
public static KotlinFormatter createKotlinFormatter(Context context)
public static XmlFormatter createXmlFormatter(Context context)
public static IntrospectedTable createIntrospectedTable(TableConfiguration tableConfiguration, FullyQualifiedTable table, Context context)
public static IntrospectedTable createIntrospectedTableForValidation(Context context)
context
- the contextpublic static IntrospectedColumn createIntrospectedColumn(Context context)
Copyright © 2006–2024 MyBatis.org. All rights reserved.