I have created a some what complicated services.as
(EnterpriseServiceLocator) and I'm trying to give some limited control
back to the end user, and allow them to select from a list of available
AMFChannels. I almost have it all working, but have a couple of
questions before I continue to finish the work in this area.
- Is it o.k for my Service Locator to access the Model locator?
- Is it o.k for my Service Locator to modify the values in the Model?
- How would you best manage your application to "WAIT" until various
checks on the AMFChannels are done before doing anything further ?
- Would it be better to create an Event / Command to do the required
logic to determine the AMFChannels and then use this to set the Model,
then have the service locator access the Model for read only?
- When the user selects an available AMFChannel, the system needs to
move the selected Channel to the TOP of the ChannelSet
- I'm doing this by creating an array of AMFChannels, storing these
in the Model, then reading them into the service locator and ChannelSet
when required.
- How do I ensure no further actions take place until this update is
done.
I know that I can achieve what I need one way or another, but would like
more opinions on the best way to do this.
Cheers
Gareth.