On Tue, Dec 3, 2013 at 12:47 PM, Dharshana Warusavitharana <
[email protected]> wrote:
> Hi All,
>
> The WSO2 Automation Framework is supposed to introduce a fresh API for
> providing runtime context and configuration publishing.
>
> Though we have several concerns to be addressed with the nature of the
> automation going on.
> 1. Automation.xml file is subjected to change with the modification of
> concepts and with introducing new features and platforms to the testing
> scenarios.
> 2. It is not practical to change the API with each time Automation.xml
> changes or new elements added.
> 3. API should be generic and should not change.
>
> In order to address this we have chosen a EclipseLink based solution on
> MOXb/JAXB
>
> Basically the only JAXB based solution will not help us since if
> automation.xml changes we have to change the mapping classes as well. So we
> are using MOXb [1] to Unmarshal the Dynamic Entities from XML using
> just a XSD to address the automation.xml.
>
> The basic API would looks like follows as directly called by
> DynamicEntities of MOXb.
>
> DynamicEntity autoElement = (DynamicEntity)
> unmarshaller.unmarshal(xmlInputStream);
> DynamicEntity config = (DynamicEntity) autoElement.get(
> "platform");
> String env = config.get("executionEnvironment");
>
Looks nice!
>
> Is there is any other methods to handle that and i am appreciated on the
> views how the API should simplify from basic DynamicEntity interface.
>
> [1].
> http://www.eclipse.org/eclipselink/documentation/2.4/solutions/jpatoxml006.htm#BEIGCBBH
>
>
> Thank You,
> Dharshana
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : [email protected] <[email protected]>
> Tel : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94772202595
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>
--
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>*
*email: **[email protected]* <[email protected]>
* cell: +94 77 3320919 blog: **http://blog.afkham.org*<http://blog.afkham.org>
*twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
<http://lk.linkedin.com/in/afkhamazeez>*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev