⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 factoryregistry.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<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>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/FactoryRegistry.html#getClassLoaders()">getClassLoaders</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns all class loaders to be used for scanning plugins. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD><TD><CODE><B><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)">getServiceProvider</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category,                   <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.Filter.html" title="class or interface in javax.imageio.spi">ServiceRegistry.Filter</A>&nbsp;filter,                   <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A>&nbsp;hints,                   <A HREF="../../../org/geotools/factory/Hints.Key.html" title="class in org.geotools.factory">Hints.Key</A>&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first provider in the registry for the specified category, using the specified map of hints (if any). </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/FactoryRegistry.html#getServiceProviders(java.lang.Class)">getServiceProviders</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the providers in the registry for the specified category. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/FactoryRegistry.html#getServiceProviders(java.lang.Class, javax.imageio.spi.ServiceRegistry.Filter, org.geotools.factory.Hints)">getServiceProviders</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category,                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.Filter.html" title="class or interface in javax.imageio.spi">ServiceRegistry.Filter</A>&nbsp;filter,                    <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A>&nbsp;hints)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the providers in the registry for the specified category, filter and hints. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/FactoryRegistry.html#isAcceptable(java.lang.Object, java.lang.Class, org.geotools.factory.Hints)">isAcceptable</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;provider,             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category,             <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A>&nbsp;hints)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns  if the specified  meets the requirements specified by a map of . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/FactoryRegistry.html#scanForPlugins()">scanForPlugins</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scans for factory plug-ins on the application class path. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/FactoryRegistry.html#setOrdering(java.lang.Class, boolean, javax.imageio.spi.ServiceRegistry.Filter, javax.imageio.spi.ServiceRegistry.Filter)">setOrdering</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;base,            boolean&nbsp;set,            <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.Filter.html" title="class or interface in javax.imageio.spi">ServiceRegistry.Filter</A>&nbsp;service1,            <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.Filter.html" title="class or interface in javax.imageio.spi">ServiceRegistry.Filter</A>&nbsp;service2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets or unsets a pairwise ordering between all services meeting a criterion. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/factory/FactoryRegistry.html#setOrdering(java.lang.Class, java.util.Comparator)">setOrdering</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category,            <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Comparator.html" title="class or interface in java.util">Comparator</A>&nbsp;comparator)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set pairwise ordering between all services according a comparator. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_ServiceRegistry"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html" title="class or interface in javax.imageio.spi">ServiceRegistry</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#contains(java.lang.Object)" title="class or interface in javax.imageio.spi">contains</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#deregisterAll()" title="class or interface in javax.imageio.spi">deregisterAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#deregisterAll(java.lang.Class)" title="class or interface in javax.imageio.spi">deregisterAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#deregisterServiceProvider(java.lang.Object)" title="class or interface in javax.imageio.spi">deregisterServiceProvider</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#deregisterServiceProvider(java.lang.Object, java.lang.Class)" title="class or interface in javax.imageio.spi">deregisterServiceProvider</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#finalize()" title="class or interface in javax.imageio.spi">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#getCategories()" title="class or interface in javax.imageio.spi">getCategories</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#getServiceProviderByClass(java.lang.Class)" title="class or interface in javax.imageio.spi">getServiceProviderByClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#getServiceProviders(java.lang.Class, boolean)" title="class or interface in javax.imageio.spi">getServiceProviders</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#getServiceProviders(java.lang.Class, javax.imageio.spi.ServiceRegistry.Filter, boolean)" title="class or interface in javax.imageio.spi">getServiceProviders</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#lookupProviders(java.lang.Class)" title="class or interface in javax.imageio.spi">lookupProviders</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#lookupProviders(java.lang.Class, java.lang.ClassLoader)" title="class or interface in javax.imageio.spi">lookupProviders</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#registerServiceProvider(java.lang.Object)" title="class or interface in javax.imageio.spi">registerServiceProvider</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#registerServiceProvider(java.lang.Object, java.lang.Class)" title="class or interface in javax.imageio.spi">registerServiceProvider</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#registerServiceProviders(java.util.Iterator)" title="class or interface in javax.imageio.spi">registerServiceProviders</A>, <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">setOrdering</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.html#unsetOrdering(java.lang.Class, java.lang.Object, java.lang.Object)" title="class or interface in javax.imageio.spi">unsetOrdering</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/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.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/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.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="LOGGER"><!-- --></A><H3>LOGGER</H3><PRE>protected static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Logger.html" title="class or interface in java.util.logging">Logger</A> <B>LOGGER</B></PRE><DL><DD>The logger for all events related to factory registry.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="FactoryRegistry(java.util.Collection)"><!-- --></A><H3>FactoryRegistry</H3><PRE>public <B>FactoryRegistry</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;categories)</PRE><DL><DD>Constructs a new registry for the specified categories.<P><DT><B>Parameters:</B><DD><CODE>categories</CODE> - The categories.</DL><!-- ============ 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="getServiceProviders(java.lang.Class)"><!-- --></A><H3>getServiceProviders</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getServiceProviders</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category)</PRE><DL><DD>Returns the providers in the registry for the specified category. Providers that are not <A HREF="../../../org/geotools/factory/OptionalFactory.html#isAvailable()">available</A> will be ignored. This method will <A HREF="../../../org/geotools/factory/FactoryRegistry.html#scanForPlugins()">scan for plugins</A> the first time it is invoked for the given category.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - The category to look for. Usually an interface class                 (not the actual implementation class).<DT><B>Returns:</B><DD>Factories ready to use for the specified category.</DL></DD></DL><HR><A NAME="getServiceProviders(java.lang.Class, javax.imageio.spi.ServiceRegistry.Filter, org.geotools.factory.Hints)"><!-- --></A><H3>getServiceProviders</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getServiceProviders</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category,                                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.Filter.html" title="class or interface in javax.imageio.spi">ServiceRegistry.Filter</A>&nbsp;filter,                                    <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A>&nbsp;hints)</PRE><DL><DD>Returns the providers in the registry for the specified category, filter and hints. This method is similar to <code><A HREF="../../../org/geotools/factory/FactoryRegistry.html#getServiceProviders(java.lang.Class)"><CODE>getServiceProviders</CODE></A>(category)</code> except that only factories matching the specified filter and hints are returned by the iterator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>category</CODE> - The category to look for. Usually an interface class                 (not the actual implementation class).<DD><CODE>filter</CODE> - The optional filter, or .<DD><CODE>hints</CODE> - The optional user requirements, or .<DT><B>Returns:</B><DD>Factories ready to use for the specified category, filter and hints.<DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="getServiceProvider(java.lang.Class, javax.imageio.spi.ServiceRegistry.Filter, org.geotools.factory.Hints, org.geotools.factory.Hints.Key)"><!-- --></A><H3>getServiceProvider</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getServiceProvider</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;category,                                 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ServiceRegistry.Filter.html" title="class or interface in javax.imageio.spi">ServiceRegistry.Filter</A>&nbsp;filter,                                 <A HREF="../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A>&nbsp;hints,                                 <A HREF="../../../org/geotools/factory/Hints.Key.html" title="class in org.geotools.factory">Hints.Key</A>&nbsp;key)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -