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 void |
addResourceClassLoader(ClassLoader classLoader)
Adds a custom classloader to the collection of classloaders
searched for resources.
|
static CommentGenerator |
createCommentGenerator(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)
This method creates an introspected table implementation that is
only usable for validation (i.e.
|
static JavaFormatter |
createJavaFormatter(Context context) |
static JavaTypeResolver |
createJavaTypeResolver(Context context,
List<String> warnings) |
static Plugin |
createPlugin(Context context,
PluginConfiguration pluginConfiguration) |
static XmlFormatter |
createXmlFormatter(Context context) |
static Class<?> |
externalClassForName(String type)
This method 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) |
public static void addResourceClassLoader(ClassLoader classLoader)
classLoader
- public static void addExternalClassLoader(ClassLoader classLoader)
classLoader
- public static Class<?> externalClassForName(String type) throws ClassNotFoundException
type
- ClassNotFoundException
public 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 JavaFormatter createJavaFormatter(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
- public static IntrospectedColumn createIntrospectedColumn(Context context)
Copyright © 2010–2018 MyBatis.org. All rights reserved.