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

📄 abstractfactory.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
AbstractFactory</H3><PRE>protected <B>AbstractFactory</B>(int&nbsp;priority)</PRE><DL><DD>Constructs a factory with the specified priority.<P><DT><B>Parameters:</B><DD><CODE>priority</CODE> - The priority for this factory, as a number between        <A HREF="../../../org/geotools/factory/AbstractFactory.html#MINIMUM_PRIORITY"><CODE>MINIMUM_PRIORITY</CODE></A> and <A HREF="../../../org/geotools/factory/AbstractFactory.html#MAXIMUM_PRIORITY"><CODE>MAXIMUM_PRIORITY</CODE></A> inclusive.</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="getPriority()"><!-- --></A><H3>getPriority</H3><PRE>public int <B>getPriority</B>()</PRE><DL><DD>Returns the priority for this factory, as a number between <A HREF="../../../org/geotools/factory/AbstractFactory.html#MINIMUM_PRIORITY"><CODE>MINIMUM_PRIORITY</CODE></A> and <A HREF="../../../org/geotools/factory/AbstractFactory.html#MAXIMUM_PRIORITY"><CODE>MAXIMUM_PRIORITY</CODE></A> inclusive. Priorities are used by <A HREF="../../../org/geotools/factory/FactoryRegistry.html" title="class in org.geotools.factory"><CODE>FactoryRegistry</CODE></A> for selecting a preferred factory when many are found for the same service. The default implementation returns <A HREF="../../../org/geotools/factory/AbstractFactory.html#priority"><CODE>priority</CODE></A> with no change. Subclasses should override this method if they want to return a higher or lower priority.<P><DD><DL></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="getImplementationHints()"><!-- --></A><H3>getImplementationHints</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> <B>getImplementationHints</B>()</PRE><DL><DD>Returns an <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collections.html#unmodifiableMap(java.util.Map)" title="class or interface in java.util">unmodifiable</A> view of <A HREF="../../../org/geotools/factory/AbstractFactory.html#hints">hints</A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/factory/Factory.html#getImplementationHints()">getImplementationHints</A></CODE> in interface <CODE><A HREF="../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory">Factory</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The map of hints, or an empty map if none.</DL></DD></DL><HR><A NAME="onRegistration(javax.imageio.spi.ServiceRegistry, java.lang.Class)"><!-- --></A><H3>onRegistration</H3><PRE>public void <B>onRegistration</B>(<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>&nbsp;registry,                           <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>Called when this factory is added to the given  of the given . The factory may already be registered under another category or categories. <p> This method is invoked automatically when this factory is registered as a plugin, and should not be invoked directly by the user. The default implementation iterates through all services under the same category that extends the  class, and set the ordering according the priority given at construction time.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/RegisterableService.html#onRegistration(javax.imageio.spi.ServiceRegistry, java.lang.Class)" title="class or interface in javax.imageio.spi">onRegistration</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/RegisterableService.html" title="class or interface in javax.imageio.spi">RegisterableService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>registry</CODE> - A service registry where this factory has been registered.<DD><CODE>category</CODE> - The registry category under which this object has been registered.<DT><B>See Also:</B><DD><A HREF="../../../org/geotools/factory/AbstractFactory.html#MINIMUM_PRIORITY"><CODE>MINIMUM_PRIORITY</CODE></A>, <A HREF="../../../org/geotools/factory/AbstractFactory.html#MAXIMUM_PRIORITY"><CODE>MAXIMUM_PRIORITY</CODE></A></DL></DD></DL><HR><A NAME="onDeregistration(javax.imageio.spi.ServiceRegistry, java.lang.Class)"><!-- --></A><H3>onDeregistration</H3><PRE>public void <B>onDeregistration</B>(<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>&nbsp;registry,                             <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>Called when this factory is removed from the given  of the given . The object may still be registered under another category or categories. <p> This method is invoked automatically when this factory is no longer registered as a plugin, and should not be invoked directly by the user.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/RegisterableService.html#onDeregistration(javax.imageio.spi.ServiceRegistry, java.lang.Class)" title="class or interface in javax.imageio.spi">onDeregistration</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/RegisterableService.html" title="class or interface in javax.imageio.spi">RegisterableService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>registry</CODE> - A service registry from which this object is being (wholly or partially)                 deregistered.<DD><CODE>category</CODE> - The registry category from which this object is being deregistered.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public final int <B>hashCode</B>()</PRE><DL><DD>Returns a hash value for this factory. The default implementation computes the hash value using only immutable properties. This computation do <strong>not</strong> relies on <A HREF="../../../org/geotools/factory/AbstractFactory.html#getImplementationHints()">implementation hints</A>, since there is no garantee that they will not change.<P><DD><DL></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public final boolean <B>equals</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;object)</PRE><DL><DD>Compares this factory with the specified object for equality. The default implementation returns  if and only if: <p> <ul>   <li>Both objects are of the exact same class       (a <cite>is instance of</cite> relationship is not enough).</li>   <li><A HREF="../../../org/geotools/factory/AbstractFactory.html#getImplementationHints()">implementation hints</A> are       <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html#equals(java.lang.Object)" title="class or interface in java.util">equal</A>.</li> </ul> <p> The requirement for the <cite>exact same class</cite> is needed for consistency with the <A HREF="../../../org/geotools/factory/FactoryRegistry.html" title="class in org.geotools.factory">factory registry</A> working, since at most one instance of a given class FactoryRegistry#getServiceProviderByClass) is allowed in a registry.<P><DD><DL></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of this factory. This method is mostly for debugging purpose, so the string format may vary across different implementations or versions. The default implementation formats all <A HREF="../../../org/geotools/factory/AbstractFactory.html#getImplementationHints()">implementation hints</A> as a tree. If the implementation hints include some <A HREF="../../../org/geotools/factory/Factory.html" title="interface in org.geotools.factory">factory</A> dependencies, then the implementation hints for those dependencies will appears under a tree branch.<P><DD><DL></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../org/geotools/factory/BasicFactories.html" title="class in org.geotools.factory"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AbstractFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 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 + -