|
|
@ -138,12 +138,19 @@ public final class TypeFactory |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected final ClassLoader _classLoader; |
|
|
|
protected final ClassLoader _classLoader; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ClassFactory classFactory; |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
/********************************************************** |
|
|
|
/********************************************************** |
|
|
|
/* Life-cycle |
|
|
|
/* Life-cycle |
|
|
|
/********************************************************** |
|
|
|
/********************************************************** |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setClassFactory(ClassFactory classFactory) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.classFactory = classFactory; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private TypeFactory() { |
|
|
|
private TypeFactory() { |
|
|
|
_parser = new TypeParser(this); |
|
|
|
_parser = new TypeParser(this); |
|
|
|
_modifiers = null; |
|
|
|
_modifiers = null; |
|
|
@ -278,10 +285,17 @@ public final class TypeFactory |
|
|
|
|
|
|
|
|
|
|
|
protected Class<?> classForName(String name, boolean initialize, |
|
|
|
protected Class<?> classForName(String name, boolean initialize, |
|
|
|
ClassLoader loader) throws ClassNotFoundException { |
|
|
|
ClassLoader loader) throws ClassNotFoundException { |
|
|
|
|
|
|
|
if (classFactory != null) { |
|
|
|
|
|
|
|
return classFactory.classForName(name, loader); |
|
|
|
|
|
|
|
} |
|
|
|
return Class.forName(name, true, loader); |
|
|
|
return Class.forName(name, true, loader); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected Class<?> classForName(String name) throws ClassNotFoundException { |
|
|
|
protected Class<?> classForName(String name) throws ClassNotFoundException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (classFactory != null) { |
|
|
|
|
|
|
|
return classFactory.classForName(name); |
|
|
|
|
|
|
|
} |
|
|
|
return Class.forName(name); |
|
|
|
return Class.forName(name); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|