📄 optionalfactory.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:21 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>OptionalFactory (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.factory.OptionalFactory interface"><META NAME="keywords" CONTENT="isAvailable()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="OptionalFactory (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/OptionalFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="OptionalFactory.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.factory</FONT><BR>Interface OptionalFactory</H2><DL><DT><B>All Superinterfaces:</B> <DD><A HREF="../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory">Factory</A></DD></DL><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../org/geotools/data/coverage/grid/GridFormatFactorySpi.html" title="interface in org.geotools.data.coverage.grid">GridFormatFactorySpi</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/geotools/gce/arcgrid/ArcGridFormatFactory.html" title="class in org.geotools.gce.arcgrid">ArcGridFormatFactory</A>, <A HREF="../../../org/geotools/arcsde/ArcSDERasterFormatFactory.html" title="class in org.geotools.arcsde">ArcSDERasterFormatFactory</A>, <A HREF="../../../org/geotools/referencing/operation/AuthorityBackedFactory.html" title="class in org.geotools.referencing.operation">AuthorityBackedFactory</A>, <A HREF="../../../org/geotools/referencing/factory/AuthorityFactoryAdapter.html" title="class in org.geotools.referencing.factory">AuthorityFactoryAdapter</A>, <A HREF="../../../org/geotools/referencing/factory/DeferredAuthorityFactory.html" title="class in org.geotools.referencing.factory">DeferredAuthorityFactory</A>, <A HREF="../../../org/geotools/gce/geotiff/GeoTiffFormatFactorySpi.html" title="class in org.geotools.gce.geotiff">GeoTiffFormatFactorySpi</A>, <A HREF="../../../org/geotools/gce/gtopo30/GTopo30FormatFactory.html" title="class in org.geotools.gce.gtopo30">GTopo30FormatFactory</A>, <A HREF="../../../org/geotools/gce/imagemosaic/ImageMosaicFormatFactory.html" title="class in org.geotools.gce.imagemosaic">ImageMosaicFormatFactory</A>, <A HREF="../../../org/geotools/gce/imagepyramid/ImagePyramidFormatFactory.html" title="class in org.geotools.gce.imagepyramid">ImagePyramidFormatFactory</A>, <A HREF="../../../org/geotools/data/wms/gce/WMSFormatFactory.html" title="class in org.geotools.data.wms.gce">WMSFormatFactory</A>, <A HREF="../../../org/geotools/gce/image/WorldImageFormatFactory.html" title="class in org.geotools.gce.image">WorldImageFormatFactory</A></DD></DL><HR><DL><DT>public interface <B>OptionalFactory</B><DT>extends <A HREF="../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory">Factory</A></DL><P>An optional factory that may not be available in all configurations. <p> Such factories often need some external resources. For example the default <A HREF="../../../org/geotools/referencing/factory/epsg/FactoryUsingSQL.html" title="class in org.geotools.referencing.factory.epsg">EPSG factory</A> need a MS-Access database installed on the client machine. This database is not bundle in Geotools distribution; if the user have not installed it, the factory can't work. <p> This interface is <strong>not</strong> a manager for automatic download of external resources. It is just a way to tell to <A HREF="../../../org/geotools/factory/FactoryFinder.html" title="class in org.geotools.factory"><CODE>FactoryFinder</CODE></A> that this factory exists, but can't do its job for whatever reasons (usually a missing resource that the user shall download and install himself), so has to choose an other factory. In other words, the interface is used as a filter, nothing else. The process is as follows: <p> <ul> <li>When <A HREF="../../../org/geotools/factory/FactoryRegistry.html#getServiceProvider(java.lang.Class, javax.imageio.spi.ServiceRegistry.Filter, org.geotools.factory.Hints, org.geotools.factory.Hints.Key)"><CODE>FactoryRegistry.getServiceProvider(java.lang.Class, javax.imageio.spi.ServiceRegistry.Filter, org.geotools.factory.Hints, org.geotools.factory.Hints.Key)</CODE></A> is invoked, it starts to iterate over all registered factories. If an <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#setOrdering(java.lang.Class, java.lang.Object, java.lang.Object)" title="class or interface in javax.imageio.spi">ordering is set</A>, it is taken in account for the iteration order.</li> <li>If no suitable factory was found before the iterator reachs this optional factory, then <A HREF="../../../org/geotools/factory/OptionalFactory.html#isAvailable()"><CODE>isAvailable()</CODE></A> is invoked. If it returns , then this optional factory is processed like any other factories. Otherwise it is ignored.</li> </ul> <p> <strong>NOTE:</strong> is not designed for factories with intermittent state (i.e. return value of <A HREF="../../../org/geotools/factory/OptionalFactory.html#isAvailable()"><CODE>isAvailable()</CODE></A> varying in an unpredictable way). The behavior is undetermined if the state changes with time.<P><P><DL><DT><B>Author:</B></DT> <DD>Martin Desruisseaux</DD><DT><B>See Also:</B><DD><A HREF="../../../org/geotools/data/DataStoreFactorySpi.html#isAvailable()"><CODE>DataStoreFactorySpi.isAvailable()</CODE></A><DT><B>Module:</B></DT><DD><CODE><B>module/referencing</B></CODE> (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-referencing/"><CODE>gt2-referencing.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/referencing/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/module/referencing/src/org/geotools/factory/OptionalFactory.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/OptionalFactory.html#isAvailable()">isAvailable</A></B>()</CODE><BR> Returns if this factory is ready for use. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_Factory"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory">Factory</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/factory/Factory.html#getImplementationHints()">getImplementationHints</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="isAvailable()"><!-- --></A><H3>isAvailable</H3><PRE>public boolean <B>isAvailable</B>()</PRE><DL><DD>Returns if this factory is ready for use. An optional factory may returns for now but returns later. However, the converse is not recommended.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/OptionalFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="OptionalFactory.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -