/[debian]/libspin-java/trunk/docs/api/spin/ProxyFactory.html
ViewVC logotype

Annotation of /libspin-java/trunk/docs/api/spin/ProxyFactory.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 380 - (hide annotations)
Fri Sep 29 21:15:40 2006 UTC (14 years, 10 months ago) by gregoa
File MIME type: text/html
File size: 13937 byte(s)
re-add docs/api

1 gregoa 380 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2     <!--NewPage-->
3     <HTML>
4     <HEAD>
5     <!-- Generated by javadoc (build 1.4.2_01) on Tue Oct 18 20:10:26 CEST 2005 -->
6     <TITLE>
7     ProxyFactory
8     </TITLE>
9    
10     <META NAME="keywords" CONTENT="spin.ProxyFactory class">
11    
12     <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
13    
14     <SCRIPT type="text/javascript">
15     function windowTitle()
16     {
17     parent.document.title="ProxyFactory";
18     }
19     </SCRIPT>
20    
21     </HEAD>
22    
23     <BODY BGCOLOR="white" onload="windowTitle();">
24    
25    
26     <!-- ========= START OF TOP NAVBAR ======= -->
27     <A NAME="navbar_top"><!-- --></A>
28     <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29     <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30     <TR>
31     <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32     <A NAME="navbar_top_firstrow"><!-- --></A>
33     <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34     <TR ALIGN="center" VALIGN="top">
35     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37     <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42     </TR>
43     </TABLE>
44     </TD>
45     <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46     </EM>
47     </TD>
48     </TR>
49    
50     <TR>
51     <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52     &nbsp;<A HREF="../spin/JDKProxyFactory.html" title="class in spin"><B>PREV CLASS</B></A>&nbsp;
53     &nbsp;<A HREF="../spin/Spin.html" title="class in spin"><B>NEXT CLASS</B></A></FONT></TD>
54     <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55     <A HREF="../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56     &nbsp;<A HREF="ProxyFactory.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57     &nbsp;<SCRIPT type="text/javascript">
58     <!--
59     if(window==top) {
60     document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
61     }
62     //-->
63     </SCRIPT>
64     <NOSCRIPT>
65     <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
66     </NOSCRIPT>
67    
68     </FONT></TD>
69     </TR>
70     <TR>
71     <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72     SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73     <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74     DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75     </TR>
76     </TABLE>
77     <A NAME="skip-navbar_top"></A>
78     <!-- ========= END OF TOP NAVBAR ========= -->
79    
80     <HR>
81     <!-- ======== START OF CLASS DATA ======== -->
82     <H2>
83     <FONT SIZE="-1">
84     spin</FONT>
85     <BR>
86     Class ProxyFactory</H2>
87     <PRE>
88     java.lang.Object
89     <IMG SRC="../resources/inherit.gif" ALT="extended by"><B>spin.ProxyFactory</B>
90     </PRE>
91     <DL>
92     <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../spin/CGLibProxyFactory.html" title="class in spin">CGLibProxyFactory</A>, <A HREF="../spin/JDKProxyFactory.html" title="class in spin">JDKProxyFactory</A></DD>
93     </DL>
94     <HR>
95     <DL>
96     <DT>public abstract class <B>ProxyFactory</B><DT>extends java.lang.Object</DL>
97    
98     <P>
99     A factory of proxies which intercept invocations, using Evaluators
100     to evaluate them.
101     <P>
102    
103     <P>
104     <DL>
105     <DT><B>See Also:</B><DD><A HREF="../spin/Evaluator.html" title="class in spin"><CODE>Evaluator</CODE></A></DL>
106     <HR>
107    
108     <P>
109     <!-- ======== NESTED CLASS SUMMARY ======== -->
110    
111    
112     <!-- =========== FIELD SUMMARY =========== -->
113    
114    
115     <!-- ======== CONSTRUCTOR SUMMARY ======== -->
116    
117     <A NAME="constructor_summary"><!-- --></A>
118     <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119     <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120     <TD COLSPAN=2><FONT SIZE="+2">
121     <B>Constructor Summary</B></FONT></TD>
122     </TR>
123     <TR BGCOLOR="white" CLASS="TableRowColor">
124     <TD><CODE><B><A HREF="../spin/ProxyFactory.html#ProxyFactory()">ProxyFactory</A></B>()</CODE>
125    
126     <BR>
127     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
128     </TR>
129     </TABLE>
130     &nbsp;
131     <!-- ========== METHOD SUMMARY =========== -->
132    
133     <A NAME="method_summary"><!-- --></A>
134     <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135     <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136     <TD COLSPAN=2><FONT SIZE="+2">
137     <B>Method Summary</B></FONT></TD>
138     </TR>
139     <TR BGCOLOR="white" CLASS="TableRowColor">
140     <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141     <CODE>protected abstract &nbsp;boolean</CODE></FONT></TD>
142     <TD><CODE><B><A HREF="../spin/ProxyFactory.html#areProxyEqual(java.lang.Object, java.lang.Object)">areProxyEqual</A></B>(java.lang.Object&nbsp;proxy1,
143     java.lang.Object&nbsp;proxy2)</CODE>
144    
145     <BR>
146     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test if the given proxies of this factory are intercepting the same object.</TD>
147     </TR>
148     <TR BGCOLOR="white" CLASS="TableRowColor">
149     <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150     <CODE>abstract &nbsp;java.lang.Object</CODE></FONT></TD>
151     <TD><CODE><B><A HREF="../spin/ProxyFactory.html#createProxy(java.lang.Object, spin.Evaluator)">createProxy</A></B>(java.lang.Object&nbsp;object,
152     <A HREF="../spin/Evaluator.html" title="class in spin">Evaluator</A>&nbsp;evaluator)</CODE>
153    
154     <BR>
155     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a proxy for the given object that evaluates invocations
156     with the given evaluator.</TD>
157     </TR>
158     <TR BGCOLOR="white" CLASS="TableRowColor">
159     <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160     <CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>
161     <TD><CODE><B><A HREF="../spin/ProxyFactory.html#evaluteInvocation(spin.Evaluator, java.lang.Object, spin.Invocation)">evaluteInvocation</A></B>(<A HREF="../spin/Evaluator.html" title="class in spin">Evaluator</A>&nbsp;evaluator,
162     java.lang.Object&nbsp;proxy,
163     <A HREF="../spin/Invocation.html" title="class in spin">Invocation</A>&nbsp;invocation)</CODE>
164    
165     <BR>
166     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evaluate the given invocation with the given evaluator.</TD>
167     </TR>
168     <TR BGCOLOR="white" CLASS="TableRowColor">
169     <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170     <CODE>abstract &nbsp;boolean</CODE></FONT></TD>
171     <TD><CODE><B><A HREF="../spin/ProxyFactory.html#isProxy(java.lang.Object)">isProxy</A></B>(java.lang.Object&nbsp;object)</CODE>
172    
173     <BR>
174     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test if the given object is a proxy created by this factory.</TD>
175     </TR>
176     </TABLE>
177     &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
178     <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
179     <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
180     <TD><B>Methods inherited from class java.lang.Object</B></TD>
181     </TR>
182     <TR BGCOLOR="white" CLASS="TableRowColor">
183     <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
184     </TR>
185     </TABLE>
186     &nbsp;
187     <P>
188    
189     <!-- ============ FIELD DETAIL =========== -->
190    
191    
192     <!-- ========= CONSTRUCTOR DETAIL ======== -->
193    
194     <A NAME="constructor_detail"><!-- --></A>
195     <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196     <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
197     <TD COLSPAN=1><FONT SIZE="+2">
198     <B>Constructor Detail</B></FONT></TD>
199     </TR>
200     </TABLE>
201    
202     <A NAME="ProxyFactory()"><!-- --></A><H3>
203     ProxyFactory</H3>
204     <PRE>
205     public <B>ProxyFactory</B>()</PRE>
206     <DL>
207     </DL>
208    
209     <!-- ============ METHOD DETAIL ========== -->
210    
211     <A NAME="method_detail"><!-- --></A>
212     <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
213     <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
214     <TD COLSPAN=1><FONT SIZE="+2">
215     <B>Method Detail</B></FONT></TD>
216     </TR>
217     </TABLE>
218    
219     <A NAME="createProxy(java.lang.Object, spin.Evaluator)"><!-- --></A><H3>
220     createProxy</H3>
221     <PRE>
222     public abstract java.lang.Object <B>createProxy</B>(java.lang.Object&nbsp;object,
223     <A HREF="../spin/Evaluator.html" title="class in spin">Evaluator</A>&nbsp;evaluator)</PRE>
224     <DL>
225     <DD>Create a proxy for the given object that evaluates invocations
226     with the given evaluator.
227     <P>
228     <DD><DL>
229     <DT><B>Parameters:</B><DD><CODE>object</CODE> - object to create proxy for<DD><CODE>evaluator</CODE> - evaluator to evaluate invocations with
230     <DT><B>Returns:</B><DD>new proxy</DL>
231     </DD>
232     </DL>
233     <HR>
234    
235     <A NAME="isProxy(java.lang.Object)"><!-- --></A><H3>
236     isProxy</H3>
237     <PRE>
238     public abstract boolean <B>isProxy</B>(java.lang.Object&nbsp;object)</PRE>
239     <DL>
240     <DD>Test if the given object is a proxy created by this factory.
241     <P>
242     <DD><DL>
243     <DT><B>Parameters:</B><DD><CODE>object</CODE> - object to test
244     <DT><B>Returns:</B><DD><code>true</code> if given object is a <em>Spin</em> proxy,
245     <code>false</code> otherwise</DL>
246     </DD>
247     </DL>
248     <HR>
249    
250     <A NAME="areProxyEqual(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
251     areProxyEqual</H3>
252     <PRE>
253     protected abstract boolean <B>areProxyEqual</B>(java.lang.Object&nbsp;proxy1,
254     java.lang.Object&nbsp;proxy2)</PRE>
255     <DL>
256     <DD>Test if the given proxies of this factory are intercepting the same object.
257     <P>
258     <DD><DL>
259     <DT><B>Parameters:</B><DD><CODE>proxy1</CODE> - first proxy<DD><CODE>proxy2</CODE> - second proxy
260     <DT><B>Returns:</B><DD>true if both proxies are intercepting the same object</DL>
261     </DD>
262     </DL>
263     <HR>
264    
265     <A NAME="evaluteInvocation(spin.Evaluator, java.lang.Object, spin.Invocation)"><!-- --></A><H3>
266     evaluteInvocation</H3>
267     <PRE>
268     protected java.lang.Object <B>evaluteInvocation</B>(<A HREF="../spin/Evaluator.html" title="class in spin">Evaluator</A>&nbsp;evaluator,
269     java.lang.Object&nbsp;proxy,
270     <A HREF="../spin/Invocation.html" title="class in spin">Invocation</A>&nbsp;invocation)
271     throws java.lang.Throwable</PRE>
272     <DL>
273     <DD>Evaluate the given invocation with the given evaluator.
274     <P>
275     <DD><DL>
276     <DT><B>Parameters:</B><DD><CODE>evaluator</CODE> - evaluator to evaluate with<DD><CODE>proxy</CODE> - proxy that intcepted the invocation<DD><CODE>invocation</CODE> - the invocation to evaluate
277     <DT><B>Returns:</B><DD>result of evaluation
278     <DT><B>Throws:</B>
279     <DD><CODE>java.lang.Throwable</CODE></DL>
280     </DD>
281     </DL>
282     <!-- ========= END OF CLASS DATA ========= -->
283     <HR>
284    
285    
286     <!-- ======= START OF BOTTOM NAVBAR ====== -->
287     <A NAME="navbar_bottom"><!-- --></A>
288     <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
289     <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
290     <TR>
291     <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
292     <A NAME="navbar_bottom_firstrow"><!-- --></A>
293     <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
294     <TR ALIGN="center" VALIGN="top">
295     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
296     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
297     <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
298     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
299     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
300     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
301     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
302     </TR>
303     </TABLE>
304     </TD>
305     <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
306     </EM>
307     </TD>
308     </TR>
309    
310     <TR>
311     <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
312     &nbsp;<A HREF="../spin/JDKProxyFactory.html" title="class in spin"><B>PREV CLASS</B></A>&nbsp;
313     &nbsp;<A HREF="../spin/Spin.html" title="class in spin"><B>NEXT CLASS</B></A></FONT></TD>
314     <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
315     <A HREF="../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
316     &nbsp;<A HREF="ProxyFactory.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
317     &nbsp;<SCRIPT type="text/javascript">
318     <!--
319     if(window==top) {
320     document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
321     }
322     //-->
323     </SCRIPT>
324     <NOSCRIPT>
325     <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
326     </NOSCRIPT>
327    
328     </FONT></TD>
329     </TR>
330     <TR>
331     <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
332     SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
333     <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
334     DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
335     </TR>
336     </TABLE>
337     <A NAME="skip-navbar_bottom"></A>
338     <!-- ======== END OF BOTTOM NAVBAR ======= -->
339    
340     <HR>
341    
342     </BODY>
343     </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26