|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mybatis.generator.internal.ObjectFactory
public class ObjectFactory
This class creates the different objects needed by the generator
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 Object createExternalObject(String type)
public static Class<?> internalClassForName(String type) throws ClassNotFoundException
ClassNotFoundException
public static URL getResource(String resource)
public static Object createInternalObject(String type)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |