Method newInstance()
Return type:
java.lang.Object
<T>
Member of:
java.lang.Class
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
return (AbstractFileRepository) getClass().newInstance();
2
Class.forName(driver).newInstance();
3
return (Map)cls.newInstance();
4
return target.newInstance();
5
Component thing = (Component) clazz.newInstance ();
6
return (HTMLParser) Class.forName( parserClassName ).newInstance();
7
return Class.forName(className, false, cl).newInstance();
8
return (AbstractLayoutSupport) getClass().newInstance();
9
return (DescriptiveStatistics)cls.newInstance();
10
return (ComponentUI)Class.forName(name).newInstance();
11
return c.newInstance();
12
Class.forName(cfg.get("jdbc.driver")).newInstance();
13
return (COMPtr)template.newInstance();
14
return (Parser) getParserClass().newInstance();
15
DriverManager.registerDriver((Driver) Class.forName(driver).newInstance());
16
bean = class1.newInstance();
17
Driver driver = (Driver) clazz.newInstance();
18
preferences = (IEasyStrutsPreferences) preferencesClass.newInstance();
19
return clazz.newInstance();
20
Object o = cl.loadClass( getMainClassName() ).newInstance();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.