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:17 BST 2008 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 Factory (Commons Collections
3.2.1 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.collections.Factory interface">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"Factory (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/Factory.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/ExtendedProperties.html" title=
"class in org.apache.commons.collections"><B>PREV CLASS
</B></A>
57 <A HREF=
"../../../../org/apache/commons/collections/FactoryUtils.html" title=
"class in org.apache.commons.collections"><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/Factory.html" target=
"_top"><B>FRAMES
</B></A>
60 <A HREF=
"Factory.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
|
CONSTR
|
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
FIELD
|
CONSTR
|
<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
</FONT>
91 Interface Factory
</H2>
93 <DT><B>All Known Implementing Classes:
</B> <DD><A HREF=
"../../../../org/apache/commons/collections/functors/ConstantFactory.html" title=
"class in org.apache.commons.collections.functors">ConstantFactory
</A>,
<A HREF=
"../../../../org/apache/commons/collections/functors/ExceptionFactory.html" title=
"class in org.apache.commons.collections.functors">ExceptionFactory
</A>,
<A HREF=
"../../../../org/apache/commons/collections/functors/InstantiateFactory.html" title=
"class in org.apache.commons.collections.functors">InstantiateFactory
</A></DD>
97 <DT><PRE>public interface
<B>Factory
</B></DL>
101 Defines a functor interface implemented by classes that create objects.
103 A
<code>Factory
</code> creates an object without using an input parameter.
104 If an input parameter is required, then
<A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections"><CODE>Transformer
</CODE></A> is more appropriate.
106 Standard implementations of common factories are provided by
107 <A HREF=
"../../../../org/apache/commons/collections/FactoryUtils.html" title=
"class in org.apache.commons.collections"><CODE>FactoryUtils
</CODE></A>. These include factories that return a constant,
108 a copy of a prototype or a new instance.
113 <DT><B>Since:
</B></DT>
114 <DD>Commons Collections
2.1</DD>
115 <DT><B>Version:
</B></DT>
116 <DD>$Revision:
646777 $ $Date:
2008-
04-
10 13:
33:
15 +
0100 (Thu,
10 Apr
2008) $
</DD>
117 <DT><B>Author:
</B></DT>
118 <DD>Arron Bates, Stephen Colebourne
</DD>
124 <!-- ========== METHOD SUMMARY =========== -->
126 <A NAME=
"method_summary"><!-- --></A>
127 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
128 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
129 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
130 <B>Method Summary
</B></FONT></TH>
132 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
133 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
134 <CODE> java.lang.Object
</CODE></FONT></TD>
135 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/Factory.html#create()">create
</A></B>()
</CODE>
138 Create a new object.
</TD>
144 <!-- ============ METHOD DETAIL ========== -->
146 <A NAME=
"method_detail"><!-- --></A>
147 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
148 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
149 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
150 <B>Method Detail
</B></FONT></TH>
154 <A NAME=
"create()"><!-- --></A><H3>
157 java.lang.Object
<B>create
</B>()
</PRE>
159 <DD>Create a new object.
163 <DT><B>Returns:
</B><DD>a new object
165 <DD><CODE><A HREF=
"../../../../org/apache/commons/collections/FunctorException.html" title=
"class in org.apache.commons.collections">FunctorException
</A></CODE> - (runtime) if the factory cannot create an object
</DL>
168 <!-- ========= END OF CLASS DATA ========= -->
172 <!-- ======= START OF BOTTOM NAVBAR ====== -->
173 <A NAME=
"navbar_bottom"><!-- --></A>
174 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
175 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
177 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
178 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
179 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
180 <TR ALIGN=
"center" VALIGN=
"top">
181 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
182 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
183 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
184 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/Factory.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
185 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
186 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
187 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
188 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
192 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
198 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
199 <A HREF=
"../../../../org/apache/commons/collections/ExtendedProperties.html" title=
"class in org.apache.commons.collections"><B>PREV CLASS
</B></A>
200 <A HREF=
"../../../../org/apache/commons/collections/FactoryUtils.html" title=
"class in org.apache.commons.collections"><B>NEXT CLASS
</B></A></FONT></TD>
201 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
202 <A HREF=
"../../../../index.html?org/apache/commons/collections/Factory.html" target=
"_top"><B>FRAMES
</B></A>
203 <A HREF=
"Factory.html" target=
"_top"><B>NO FRAMES
</B></A>
204 <SCRIPT type=
"text/javascript">
207 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
212 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
219 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
220 SUMMARY:
NESTED
|
FIELD
|
CONSTR
|
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
221 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
222 DETAIL:
FIELD
|
CONSTR
|
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
225 <A NAME=
"skip-navbar_bottom"></A>
226 <!-- ======== END OF BOTTOM NAVBAR ======= -->
229 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.