public class ObjectFactory extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
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. for a context to determine
if the target is ibatis2 or mybatis3).
|
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 - classLoaderpublic static void addExternalClassLoader(ClassLoader classLoader)
classLoader - classLoaderpublic static Class<?> externalClassForName(String type) throws ClassNotFoundException
type - typeClassNotFoundExceptionpublic static Class<?> internalClassForName(String type) throws 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 - contextpublic static IntrospectedColumn createIntrospectedColumn(Context context)
Copyright © 2017. All Rights Reserved.