Issue Details (XML | Word | Printable)

Key: GDS-54
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Franck Wolff
Reporter: Cristian Pascu
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
GraniteDS

Provide a way to dinamically add destinations to applications using Granite Data Services

Created: 13/Nov/07 10:53 AM   Updated: 23/Apr/08 06:43 PM   Resolved: 23/Apr/08 06:43 PM
Component/s: Spring services
Affects Version/s: 0.4.0
Fix Version/s: 1.1.0_RC1

File Attachments: 1. Java Source File FlexService.java (0.5 kB) 30/Jan/08 11:27 AM - Nico Krijnen
2. XML File services-config.xml (1 kB) 30/Jan/08 11:26 AM - Nico Krijnen
3. Text File Services.mxml.txt (1 kB) 30/Jan/08 11:27 AM - Nico Krijnen
4. Java Source File SpringServiceFactory.java (3 kB) 30/Jan/08 11:26 AM - Nico Krijnen
5. Java Source File SpringServiceInvoker.java (0.5 kB) 30/Jan/08 11:26 AM - Nico Krijnen



 Description  « Hide
In an web application that needs to have some kind of modularity, having one single configuration file for Flex Services will enforce each module to register it's destination in this configuration file. Although I don't know if it's possible in Flex DS, I guess that it will be nice to have this kind of feature in GDS.

I imagine three different solutions, not all of them being so nice:
1. Provide an annotation for classes that want to be exposed as destinations. Using a Spring BeanFactoryPostProcessor, on can easily discover all beans inside application context that have this annotation and automatically register those beans as GDS destinations.

2. Create a FactoryBean for Destination's to be used inside an application context that will instantiate destinations and register them inside ServicesConfig under the specified Service.

3. Use custom namespaces inside spring configuration files. Need to create an XSD for destination elements and other configuration options specific to GDS. I have noticed that is very easy to transform a org.w3c Dom document into a JDOM document so no need to change granite config classes.

I have started to implement something and would be more then happy to contribute patches but I like to hear first from you what do you think.

Franck Wolff made changes - 21/Nov/07 01:56 PM
Field Original Value New Value
Affects Version/s 0.4.0 [ 10030 ]
Fix Version/s 0.5.0 [ 10031 ]
Franck Wolff made changes - 17/Dec/07 05:48 PM
Fix Version/s 1.1.0 [ 10040 ]
Fix Version/s 1.0.0 [ 10031 ]
Nico Krijnen made changes - 30/Jan/08 11:26 AM
Attachment services-config.xml [ 10050 ]
Attachment SpringServiceFactory.java [ 10051 ]
Attachment SpringServiceInvoker.java [ 10052 ]
Nico Krijnen made changes - 30/Jan/08 11:27 AM
Attachment FlexService.java [ 10053 ]
Attachment Services.mxml.txt [ 10054 ]
Franck Wolff made changes - 23/Apr/08 06:43 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]