> What about Navigations and Actions? I think it makes perfect sense to be
> able to write those in JPython too.
Definitely!
> This looks good, We have ScreenLoader as before, but it delegates
functionality
> to multiple screen factories. I like that, but think about making it more
> general, to include Actions and Navigations as well. One possiblility is
to
> make NavigationLoader and ActionLoader delegate to the factories as well,
> and create an entity (a Service, presumably) that would manage the
factories.
>
> public interface AssemblerFactory
> {
> public Assembler getAssembler( String name );
> }
>
> public interface AssemblerFactoryManager
> {
> public static final String ACTION_TYPE = "action";
> public static final String SCREEN_TYPE = "screen";
> public static final String NAVIGATION_TYPE = "navigation";
>
> public void registerFactory( String type, AssemblerFactory factory );
> public Assembler getAssembler( String type, String name );
> }
>
> getAssembler method would query the factories registered for the
> specified type, in the order that they were registered at system startup,
> until one of them returns a non-null value, or there are no more
registered
> factories.
+1
> I think it is. If you define multiple factories, you should be able to
define
> precedence also. For example, you can gradualy replace your JPython
screens with
> Java ones as your system matures, giving JavaScreenFactory preference over
> JPythonScreenFactory. When there are no more JPython screens used, you
remove
> the factory and all JPython sources at once.
+1
> I see the following similarities to a service:
>
> 1. Encapsulates a set of related functionality, and configuration options
> 2. Implementation should follow Singleton pattern to provide single point
of access
+0
1. You will probably never require an alternative implementation
2. You will probably never require early initialization
3. Resources will *always* be allocated not on first run because...
4. ...the lifetime differs from that of a service.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]