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_07) on Fri Apr 11 15:39:19 BST 2008 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 InvokerTransformer (Commons Collections
3.2.1 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.collections.functors.InvokerTransformer class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"InvokerTransformer (Commons Collections 3.2.1 API)";
26 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME=
"navbar_top"><!-- --></A>
31 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
32 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
34 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
35 <A NAME=
"navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
37 <TR ALIGN=
"center" VALIGN=
"top">
38 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/InvokerTransformer.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
49 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
55 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
56 <A HREF=
"../../../../../org/apache/commons/collections/functors/InstantiateTransformer.html" title=
"class in org.apache.commons.collections.functors"><B>PREV CLASS
</B></A>
57 <A HREF=
"../../../../../org/apache/commons/collections/functors/MapTransformer.html" title=
"class in org.apache.commons.collections.functors"><B>NEXT CLASS
</B></A></FONT></TD>
58 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
59 <A HREF=
"../../../../../index.html?org/apache/commons/collections/functors/InvokerTransformer.html" target=
"_top"><B>FRAMES
</B></A>
60 <A HREF=
"InvokerTransformer.html" target=
"_top"><B>NO FRAMES
</B></A>
61 <SCRIPT type=
"text/javascript">
64 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
82 <A NAME=
"skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.apache.commons.collections.functors
</FONT>
91 Class InvokerTransformer
</H2>
94 <IMG SRC=
"../../../../../resources/inherit.gif" ALT=
"extended by "><B>org.apache.commons.collections.functors.InvokerTransformer
</B>
97 <DT><B>All Implemented Interfaces:
</B> <DD>java.io.Serializable,
<A HREF=
"../../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A></DD>
101 <DT><PRE>public class
<B>InvokerTransformer
</B><DT>extends java.lang.Object
<DT>implements
<A HREF=
"../../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A>, java.io.Serializable
</DL>
105 Transformer implementation that creates a new object instance by reflection.
110 <DT><B>Since:
</B></DT>
111 <DD>Commons Collections
3.0</DD>
112 <DT><B>Version:
</B></DT>
113 <DD>$Revision:
646777 $ $Date:
2008-
04-
10 13:
33:
15 +
0100 (Thu,
10 Apr
2008) $
</DD>
114 <DT><B>Author:
</B></DT>
115 <DD>Stephen Colebourne
</DD>
116 <DT><B>See Also:
</B><DD><A HREF=
"../../../../../serialized-form.html#org.apache.commons.collections.functors.InvokerTransformer">Serialized Form
</A></DL>
121 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
123 <A NAME=
"constructor_summary"><!-- --></A>
124 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
125 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
126 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
127 <B>Constructor Summary
</B></FONT></TH>
129 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
130 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#InvokerTransformer(java.lang.String, java.lang.Class[], java.lang.Object[])">InvokerTransformer
</A></B>(java.lang.String
methodName,
131 java.lang.Class[]
paramTypes,
132 java.lang.Object[]
args)
</CODE>
135 Constructor that performs no validation.
</TD>
139 <!-- ========== METHOD SUMMARY =========== -->
141 <A NAME=
"method_summary"><!-- --></A>
142 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
143 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
144 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
145 <B>Method Summary
</B></FONT></TH>
147 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
148 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
149 <CODE>static
<A HREF=
"../../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A></CODE></FONT></TD>
150 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#getInstance(java.lang.String)">getInstance
</A></B>(java.lang.String
methodName)
</CODE>
153 Gets an instance of this transformer calling a specific method with no arguments.
</TD>
155 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
156 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
157 <CODE>static
<A HREF=
"../../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A></CODE></FONT></TD>
158 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#getInstance(java.lang.String, java.lang.Class[], java.lang.Object[])">getInstance
</A></B>(java.lang.String
methodName,
159 java.lang.Class[]
paramTypes,
160 java.lang.Object[]
args)
</CODE>
163 Gets an instance of this transformer calling a specific method with specific values.
</TD>
165 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
166 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
167 <CODE> java.lang.Object
</CODE></FONT></TD>
168 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/collections/functors/InvokerTransformer.html#transform(java.lang.Object)">transform
</A></B>(java.lang.Object
input)
</CODE>
171 Transforms the input to result by invoking a method on the input.
</TD>
174 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
175 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
176 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
177 <TH ALIGN=
"left"><B>Methods inherited from class java.lang.Object
</B></TH>
179 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
180 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
186 <!-- ========= CONSTRUCTOR DETAIL ======== -->
188 <A NAME=
"constructor_detail"><!-- --></A>
189 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
190 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
191 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
192 <B>Constructor Detail
</B></FONT></TH>
196 <A NAME=
"InvokerTransformer(java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>
197 InvokerTransformer
</H3>
199 public
<B>InvokerTransformer
</B>(java.lang.String
methodName,
200 java.lang.Class[]
paramTypes,
201 java.lang.Object[]
args)
</PRE>
203 <DD>Constructor that performs no validation.
204 Use
<code>getInstance
</code> if you want that.
207 <DT><B>Parameters:
</B><DD><CODE>methodName
</CODE> - the method to call
<DD><CODE>paramTypes
</CODE> - the constructor parameter types, not cloned
<DD><CODE>args
</CODE> - the constructor arguments, not cloned
</DL>
210 <!-- ============ METHOD DETAIL ========== -->
212 <A NAME=
"method_detail"><!-- --></A>
213 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
214 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
215 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
216 <B>Method Detail
</B></FONT></TH>
220 <A NAME=
"getInstance(java.lang.String)"><!-- --></A><H3>
223 public static
<A HREF=
"../../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> <B>getInstance
</B>(java.lang.String
methodName)
</PRE>
225 <DD>Gets an instance of this transformer calling a specific method with no arguments.
231 <DT><B>Parameters:
</B><DD><CODE>methodName
</CODE> - the method name to call
232 <DT><B>Returns:
</B><DD>an invoker transformer
<DT><B>Since:
</B></DT>
233 <DD>Commons Collections
3.1</DD>
239 <A NAME=
"getInstance(java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>
242 public static
<A HREF=
"../../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> <B>getInstance
</B>(java.lang.String
methodName,
243 java.lang.Class[]
paramTypes,
244 java.lang.Object[]
args)
</PRE>
246 <DD>Gets an instance of this transformer calling a specific method with specific values.
252 <DT><B>Parameters:
</B><DD><CODE>methodName
</CODE> - the method name to call
<DD><CODE>paramTypes
</CODE> - the parameter types of the method
<DD><CODE>args
</CODE> - the arguments to pass to the method
253 <DT><B>Returns:
</B><DD>an invoker transformer
</DL>
258 <A NAME=
"transform(java.lang.Object)"><!-- --></A><H3>
261 public java.lang.Object
<B>transform
</B>(java.lang.Object
input)
</PRE>
263 <DD>Transforms the input to result by invoking a method on the input.
266 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/collections/Transformer.html#transform(java.lang.Object)">transform
</A></CODE> in interface
<CODE><A HREF=
"../../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A></CODE></DL>
269 <DT><B>Parameters:
</B><DD><CODE>input
</CODE> - the input object to transform
270 <DT><B>Returns:
</B><DD>the transformed result, null if null input
</DL>
273 <!-- ========= END OF CLASS DATA ========= -->
277 <!-- ======= START OF BOTTOM NAVBAR ====== -->
278 <A NAME=
"navbar_bottom"><!-- --></A>
279 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
280 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
282 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
283 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
284 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
285 <TR ALIGN=
"center" VALIGN=
"top">
286 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
287 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
288 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
289 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/InvokerTransformer.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
290 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
291 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
292 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
293 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
297 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
303 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
304 <A HREF=
"../../../../../org/apache/commons/collections/functors/InstantiateTransformer.html" title=
"class in org.apache.commons.collections.functors"><B>PREV CLASS
</B></A>
305 <A HREF=
"../../../../../org/apache/commons/collections/functors/MapTransformer.html" title=
"class in org.apache.commons.collections.functors"><B>NEXT CLASS
</B></A></FONT></TD>
306 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
307 <A HREF=
"../../../../../index.html?org/apache/commons/collections/functors/InvokerTransformer.html" target=
"_top"><B>FRAMES
</B></A>
308 <A HREF=
"InvokerTransformer.html" target=
"_top"><B>NO FRAMES
</B></A>
309 <SCRIPT type=
"text/javascript">
312 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
317 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
324 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
325 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
326 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
327 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
330 <A NAME=
"skip-navbar_bottom"></A>
331 <!-- ======== END OF BOTTOM NAVBAR ======= -->
334 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.