|
||||||||||
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(java.lang.ClassLoader classLoader)
Adds a custom classloader to the collection of classloaders searched for "external" classes. |
static void |
addResourceClassLoader(java.lang.ClassLoader classLoader)
Adds a custom classloader to the collection of classloaders searched for resources. |
static CommentGenerator |
createCommentGenerator(Context context)
|
static java.lang.Object |
createExternalObject(java.lang.String type)
|
static java.lang.Object |
createInternalObject(java.lang.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,
java.util.List<java.lang.String> warnings)
|
static Plugin |
createPlugin(Context context,
PluginConfiguration pluginConfiguration)
|
static XmlFormatter |
createXmlFormatter(Context context)
|
static java.lang.Class<?> |
externalClassForName(java.lang.String type)
This method returns a class loaded from the context classloader, or the classloader supplied by a client. |
static java.net.URL |
getResource(java.lang.String resource)
|
static java.lang.Class<?> |
internalClassForName(java.lang.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(java.lang.ClassLoader classLoader)
classLoader
- public static void addExternalClassLoader(java.lang.ClassLoader classLoader)
classLoader
- public static java.lang.Class<?> externalClassForName(java.lang.String type) throws java.lang.ClassNotFoundException
type
-
java.lang.ClassNotFoundException
public static java.lang.Object createExternalObject(java.lang.String type)
public static java.lang.Class<?> internalClassForName(java.lang.String type) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static java.net.URL getResource(java.lang.String resource)
public static java.lang.Object createInternalObject(java.lang.String type)
public static JavaTypeResolver createJavaTypeResolver(Context context, java.util.List<java.lang.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 |