<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Flex2 :: Decorator or Interface</title>
	<link>http://www.blog.teotigraphix.com/2006/06/12/flex2-decorator-or-interface/</link>
	<description>Components are the building blocks of our Universe, that is why I make them!</description>
	<pubDate>Tue, 06 Jan 2009 11:27:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: teoti.graphix</title>
		<link>http://www.blog.teotigraphix.com/2006/06/12/flex2-decorator-or-interface/#comment-109</link>
		<pubDate>Thu, 15 Jun 2006 17:40:32 +0000</pubDate>
		<guid>http://www.blog.teotigraphix.com/2006/06/12/flex2-decorator-or-interface/#comment-109</guid>
					<description>Hi,

Yeah, decorators are very sly beasts. They are great for some thing and not for others.

This particular question steams from more of a 'performace' idea.

I use interfaces all the time but, I was wondering if it was faster to wrap something during a parse routine.

I think I will just test it sometime and see what the speed difference is.

Peace, Mike</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yeah, decorators are very sly beasts. They are great for some thing and not for others.</p>
<p>This particular question steams from more of a &#8216;performace&#8217; idea.</p>
<p>I use interfaces all the time but, I was wondering if it was faster to wrap something during a parse routine.</p>
<p>I think I will just test it sometime and see what the speed difference is.</p>
<p>Peace, Mike
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: JabbyPanda</title>
		<link>http://www.blog.teotigraphix.com/2006/06/12/flex2-decorator-or-interface/#comment-108</link>
		<pubDate>Thu, 15 Jun 2006 17:31:26 +0000</pubDate>
		<guid>http://www.blog.teotigraphix.com/2006/06/12/flex2-decorator-or-interface/#comment-108</guid>
					<description>We use interface all along the project. 

Imagine the following event can be emitted by different sources derived from different classes by imlementing the same interface: IPhotoGalleryDataProvider

-----------------------
class gallery.events.PhotosDPUpdatedEvent extends Event

public function PhotosDPUpdatedEvent(updateType : String, target : IPhotoGalleryDataProvider) {
		super(DATA_SOURCE_UPDATE_EVENT, target);
		_updateType = updateType;
	}

------------------

Сan this be done with decorators?
	
	public function get updateType() : String {
		return _updateType;
	}</description>
		<content:encoded><![CDATA[<p>We use interface all along the project. </p>
<p>Imagine the following event can be emitted by different sources derived from different classes by imlementing the same interface: IPhotoGalleryDataProvider</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
class gallery.events.PhotosDPUpdatedEvent extends Event</p>
<p>public function PhotosDPUpdatedEvent(updateType : String, target : IPhotoGalleryDataProvider) {<br />
		super(DATA_SOURCE_UPDATE_EVENT, target);<br />
		_updateType = updateType;<br />
	}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Сan this be done with decorators?</p>
<p>	public function get updateType() : String {<br />
		return _updateType;<br />
	}
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
