Hello All,
In scouring all my Cairngorm examples, I am seeing 2 distinct methods of
creating the Delegates (under com.adobe.cairngorm.business).
One method uses a Class - like so:
---------------------------------------------------------------
import com.adobe.cairngorm.business.Responder;
import com.adobe.cairngorm.business.ServiceLocator;
import mx.utils.Delegate;
class com.adobe.cairngorm.samples.store.business.CreditCardDelegate
{
private var responder : Responder;
private var service : Object;
public function CreditCardDelegate( responder : Responder )
{
this.service = ServiceLocator.getInstance().getService(
"creditCardService" );
this.responder = responder;
}
}
---------------------------------------------------------------
The other method uses a Package - like so:
---------------------------------------------------------------
package com.adobe.cairngorm.samples.store.business
{
import com.adobe.cairngorm.business.Responder;
import com.adobe.cairngorm.business.ServiceLocator;
public class CreditCardDelegate
{
private var responder : Responder;
private var service : Object;
public function CreditCardDelegate( responder :
Responder )
{
this.service =
ServiceLocator.getInstance().getService( "creditCardService" );
this.responder = responder;
}
}
}
---------------------------------------------------------------
Could anybody indicate whether I should use one or the other? And if
there is a definite answer, why I should do it a particular way?
Was this something that changed with newer version of Cairngorm?
Thanks in advance for all your help,
Mike
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/