1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.5.0_08) on Mon Nov 02 09:43:09 CET 2009 -->
7
ClassTools (intarsys runtime library)
10
<META NAME="keywords" CONTENT="de.intarsys.tools.reflect.ClassTools class">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../javadocstyle.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
parent.document.title="ClassTools (intarsys runtime library)";
25
<BODY BGCOLOR="white" onload="windowTitle();">
28
<!-- ========= START OF TOP NAVBAR ======= -->
29
<A NAME="navbar_top"><!-- --></A>
30
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34
<A NAME="navbar_top_firstrow"><!-- --></A>
35
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36
<TR ALIGN="center" VALIGN="top">
37
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
38
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassTools.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
42
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
43
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
44
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
48
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51
<b>intarsys runtime library</b>
58
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59
PREV CLASS
60
<A HREF="../../../../de/intarsys/tools/reflect/IClassLoaderAccess.html" title="interface in de.intarsys.tools.reflect"><B>NEXT CLASS</B></A></FONT></TD>
61
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
62
<A HREF="../../../../index.html?de/intarsys/tools/reflect/ClassTools.html" target="_top"><B>FRAMES</B></A>
63
<A HREF="ClassTools.html" target="_top"><B>NO FRAMES</B></A>
64
<SCRIPT type="text/javascript">
67
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
72
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
81
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
82
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
85
<A NAME="skip-navbar_top"></A>
86
<!-- ========= END OF TOP NAVBAR ========= -->
89
<!-- ======== START OF CLASS DATA ======== -->
92
de.intarsys.tools.reflect</FONT>
96
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
97
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>de.intarsys.tools.reflect.ClassTools</B>
101
<DT><PRE>public class <B>ClassTools</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
105
Tool class to enhance the reflective capabilities about classes.
113
<!-- ========== METHOD SUMMARY =========== -->
115
<A NAME="method_summary"><!-- --></A>
116
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
119
<B>Method Summary</B></FONT></TH>
121
<TR BGCOLOR="white" CLASS="TableRowColor">
122
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
124
<TD><CODE><B><A HREF="../../../../de/intarsys/tools/reflect/ClassTools.html#collectClasses(java.lang.String)">collectClasses</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> classPath)</CODE>
127
Create a list of all classes that are available from classPath.</TD>
129
<TR BGCOLOR="white" CLASS="TableRowColor">
130
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
132
<TD><CODE><B><A HREF="../../../../de/intarsys/tools/reflect/ClassTools.html#collectClassNames(java.lang.String)">collectClassNames</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> classPath)</CODE>
135
Create a list of class names in dot notation that can be found in the
138
<TR BGCOLOR="white" CLASS="TableRowColor">
139
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
142
<TR ALIGN="right" VALIGN="">
143
<TD NOWRAP><FONT SIZE="-1">
144
<CODE><T> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><T></CODE></FONT></TD>
148
<TD><CODE><B><A HREF="../../../../de/intarsys/tools/reflect/ClassTools.html#createClass(java.lang.String, java.lang.Class, java.lang.ClassLoader)">createClass</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className,
149
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><T> expectedClass,
150
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> classLoader)</CODE>
153
</TD>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A></CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../../de/intarsys/tools/reflect/ClassTools.html#createClassLoader(java.lang.String)">createClassLoader</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> classPath)</CODE>
161
Create a new ClassLoader on the specified classpath</TD>
164
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
165
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
166
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
167
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
169
<TR BGCOLOR="white" CLASS="TableRowColor">
170
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
176
<!-- ============ METHOD DETAIL ========== -->
178
<A NAME="method_detail"><!-- --></A>
179
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
181
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
182
<B>Method Detail</B></FONT></TH>
186
<A NAME="collectClasses(java.lang.String)"><!-- --></A><H3>
189
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>collectClasses</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> classPath)
190
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
192
<DD>Create a list of all classes that are available from classPath.
195
Be aware that the classes are loaded and so any static code is executed.
199
<DT><B>Parameters:</B><DD><CODE>classPath</CODE> - The classpath to inspect
200
<DT><B>Returns:</B><DD>A list of all classes that are available from classPath.
202
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL>
207
<A NAME="collectClassNames(java.lang.String)"><!-- --></A><H3>
208
collectClassNames</H3>
210
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>collectClassNames</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> classPath)
211
throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
213
<DD>Create a list of class names in dot notation that can be found in the
217
<DT><B>Parameters:</B><DD><CODE>classPath</CODE> - The classpath to inspect
218
<DT><B>Returns:</B><DD>A list of class names in dot notation that can be found in the
221
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL>
226
<A NAME="createClass(java.lang.String, java.lang.Class, java.lang.ClassLoader)"><!-- --></A><H3>
229
public static <T> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><T> <B>createClass</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className,
230
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><T> expectedClass,
231
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> classLoader)
232
throws <A HREF="../../../../de/intarsys/tools/reflect/ObjectCreationException.html" title="class in de.intarsys.tools.reflect">ObjectCreationException</A></PRE>
237
<DD><CODE><A HREF="../../../../de/intarsys/tools/reflect/ObjectCreationException.html" title="class in de.intarsys.tools.reflect">ObjectCreationException</A></CODE></DL>
242
<A NAME="createClassLoader(java.lang.String)"><!-- --></A><H3>
243
createClassLoader</H3>
245
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> <B>createClassLoader</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> classPath)</PRE>
247
<DD>Create a new ClassLoader on the specified classpath
250
<DT><B>Parameters:</B><DD><CODE>classPath</CODE> - The classpath we want to load from.
251
<DT><B>Returns:</B><DD>A new ClassLoader on the specified classpath</DL>
254
<!-- ========= END OF CLASS DATA ========= -->
258
<!-- ======= START OF BOTTOM NAVBAR ====== -->
259
<A NAME="navbar_bottom"><!-- --></A>
260
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
261
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
263
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
264
<A NAME="navbar_bottom_firstrow"><!-- --></A>
265
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
266
<TR ALIGN="center" VALIGN="top">
267
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
268
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
269
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
270
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassTools.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
271
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
272
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
273
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
274
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
278
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
281
<b>intarsys runtime library</b>
288
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
289
PREV CLASS
290
<A HREF="../../../../de/intarsys/tools/reflect/IClassLoaderAccess.html" title="interface in de.intarsys.tools.reflect"><B>NEXT CLASS</B></A></FONT></TD>
291
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
292
<A HREF="../../../../index.html?de/intarsys/tools/reflect/ClassTools.html" target="_top"><B>FRAMES</B></A>
293
<A HREF="ClassTools.html" target="_top"><B>NO FRAMES</B></A>
294
<SCRIPT type="text/javascript">
297
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
302
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
309
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
310
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
311
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
312
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
315
<A NAME="skip-navbar_bottom"></A>
316
<!-- ======== END OF BOTTOM NAVBAR ======= -->
320
<i>Copyright © 2008 <a href=http://www.intarsys.de/ target=_top>intarsys consulting GmbH</a>. All Rights Reserved.</i>