
|
If you were logged in you would be able to see more operations.
|
|
|
|
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.
|
|
Description
|
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. |
Show » |
Sort Order:
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
]
|
made changes - 17/Dec/07 05:48 PM
|
Fix Version/s
|
|
1.1.0
[ 10040
]
|
|
Fix Version/s
|
1.0.0
[ 10031
]
|
|
made changes - 30/Jan/08 11:26 AM
made changes - 23/Apr/08 06:43 PM
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
|