objectfactory.singleton.html

来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 412 行 · 第 1/2 页

HTML
412
字号
&nbsp;<A NAME="methods_inherited_from_class_mondrian.util.ObjectFactory"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class mondrian.util.<A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#defaultCreationException()">defaultCreationException</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getClassName()">getClassName</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getClassName(java.util.Properties)">getClassName</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getDefault(java.lang.Class[], java.lang.Object[])">getDefault</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject()">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject(java.lang.Class[], java.lang.Object[])">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject(java.util.Properties)">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject(java.lang.String, java.lang.Class[], java.lang.Object[])">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getStringProperty()">getStringProperty</A>, <A HREF="../../mondrian/util/ObjectFactory.html#removeContext()">removeContext</A>, <A HREF="../../mondrian/util/ObjectFactory.html#restoreContext(java.lang.Object)">restoreContext</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/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/javase/6/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="singleInstance"><!-- --></A><H3>singleInstance</H3><PRE>protected <A HREF="../../mondrian/util/ObjectFactory.Singleton.html" title="type parameter in ObjectFactory.Singleton">T</A> <B>singleInstance</B></PRE><DL><DD>The single instance of the object created by the factory.<P><DL></DL></DL><HR><A NAME="testSingleInstance"><!-- --></A><H3>testSingleInstance</H3><PRE>protected <A HREF="../../mondrian/util/ObjectFactory.Singleton.html" title="type parameter in ObjectFactory.Singleton">T</A> <B>testSingleInstance</B></PRE><DL><DD>The test single instance of the object created by the factory. Creating this <code>testSingleInstance</code> does not change the current value of the <code>singleInstance</code> variable.<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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ObjectFactory.Singleton(java.lang.Class)"><!-- --></A><H3>ObjectFactory.Singleton</H3><PRE>protected <B>ObjectFactory.Singleton</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&lt;<A HREF="../../mondrian/util/ObjectFactory.Singleton.html" title="type parameter in ObjectFactory.Singleton">T</A>&gt;&nbsp;interfaceClass)</PRE><DL><DD>Creates a new singleton factory object. The <code>interfaceClass</code> parameter is used to cast the object generated to type right type.<P><DL><DT><B>Parameters:</B><DD><CODE>interfaceClass</CODE> - the class object for the interface implemented by the objects returned by this factory</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getObject(java.util.Properties, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>getObject</H3><PRE>protected <A HREF="../../mondrian/util/ObjectFactory.Singleton.html" title="type parameter in ObjectFactory.Singleton">T</A> <B>getObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A>&nbsp;props,                      <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>[]&nbsp;parameterTypes,                      <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;parameterValues)               throws <A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></PRE><DL><DD>Returns the singleton Object. The first time this is called, an object is created where the <code>parameterTypes</code> and <code>parameterValues</code> are constructor parameters and Properties parameter is used to look up a class name. <p> This returns a same instance of the Object each time its called except if the <code>getClassName</code> method returns a non-null class name which should only happen as needed for unit testing.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#getObject(java.util.Properties, java.lang.Class[], java.lang.Object[])">getObject</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/util/ObjectFactory.Singleton.html" title="type parameter in ObjectFactory.Singleton">T</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>props</CODE> - the property definitions to use to determine the<DD><CODE>parameterTypes</CODE> - the class parameters that define the signature of the constructor to use<DD><CODE>parameterValues</CODE> - the values to use to construct the current instance of the object<DT><B>Returns:</B><DD>the newly created object<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></CODE> - if unable to create the object</DL></DD></DL><HR><A NAME="getTestObject(java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>getTestObject</H3><PRE>protected <A HREF="../../mondrian/util/ObjectFactory.Singleton.html" title="type parameter in ObjectFactory.Singleton">T</A> <B>getTestObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;className,                          <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>[]&nbsp;parameterTypes,                          <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;parameterValues)                   throws <A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></PRE><DL><DD>Create an instance for test purposes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the class name used to create Object instance<DD><CODE>parameterTypes</CODE> - the class parameters that define the signature of the constructor to use<DD><CODE>parameterValues</CODE> - the values to use to construct the current instance of the object<DT><B>Returns:</B><DD>the newly created object<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></CODE> - if unable to create the object</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=2 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="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><a href="http://sourceforge.net/projects/mondrian"><img src="http://sourceforge.net/sflogo.php?group_id=35302&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../mondrian/util/ObjectFactory.Context.html" title="interface in mondrian.util"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../mondrian/util/ObjectPool.html" title="class in mondrian.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?mondrian/util/ObjectFactory.Singleton.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ObjectFactory.Singleton.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;<A HREF="#nested_classes_inherited_from_class_mondrian.util.ObjectFactory">NESTED</A>&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></BODY></HTML>

⌨️ 快捷键说明

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