Hi All,

We thought of come-up with an XSD for the apptype.xml and use it to
validate the xml file against the mandatory elements. If apptype.xml is
validated and the result is success then it can be unmarshelled with JAXB.


On Mon, Jul 28, 2014 at 5:33 PM, Danushka Fernando <danush...@wso2.com>
wrote:

> Hi All
>
> Problem : App Factory deployers should be able to add application types
> by packaging everything in a file. For example to add foo apptype add
> foo.apptype archive file and putting it in a location. [1]
>
> Solution : Add a new deployer (Apptype Deployer), which will listen to
> the location $CARBON_HOME/repository/deployment/server/apptypes and which
> will do the following set of tasks.
>
>
>    1.
>
>    Explode the zip file.
>    2.
>
>    This zip file should contain a xml file such as apptype.xml.
>    3.
>
>    There are set of tags that should be in this xml (Mandatory Tags) and
>    there could be set of properties which is custom to this apptype.
>    4.
>
>    Pre check the availability of the class mentioned as the Application
>    Type Processor (Which should be a Mandatory Tags). (This application type
>    processor is a customization endpoint provided by App Factory)
>    5.
>
>    Copy set of resources files to a named locations.
>    6.
>
>    Populate a in memory data structure with the data in the apptype.xml.
>
>
>
> [1] https://redmine.wso2.com/issues/2889
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> _______________________________________________
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com <http://wso2>
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



 <http://lalajisureshika.blogspot.com/>
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to