<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="BLOCKNOTE.NET">
<meta name="source"
 content="http://www.google.com/search?hl=en&amp;client=firefox-a&amp;rls=org.mozilla:en-US:official&amp;q=hooks+extension+points+framework+object-oriented+design&amp;start=60&amp;sa=N">
<title></title>
<style>BODY { FONT-FAMILY:Verdana; FONT-SIZE:10pt }
P { FONT-FAMILY:Verdana; FONT-SIZE:10pt }
DIV { FONT-FAMILY:Verdana; FONT-SIZE:10pt }
TD { FONT-FAMILY:Verdana; FONT-SIZE:10pt }
</style><basefont face="Verdana" size="2"><br>
Anybody have any thoughts on the use of a <a
 href="http://martinfowler.com/bliki/FluentInterface.html">Fluent
Interface</a> (Fowler)
style (also known as <a
 href="http://www.factorypattern.com/method-chaining">Method Chaining</a>)
in the design of an API.&nbsp; Essentially, by returning the object instance
from the setter methods, you can chain calls, like:<br>
<pre name="code" class="java">Rectangle().setX(10).setY(10).setWidth(13).setHeight(15).setColor("red");</pre>
-- <br>
<pre class="moz-signature" cols="72">Grant Harris

</pre>
</body>
</html>