Hi Imesh,
Yes, sorry I should have mentioned it is a maven archetype.

@Azeez I have created a README.md with the content of the doc. Please find
the PR here[1].

[1] https://github.com/wso2/msf4j/pull/126

Thank you.

On Fri, Feb 5, 2016 at 11:59 AM, Afkham Azeez <az...@wso2.com> wrote:

> This doc has to go to the README.md file in the archetype dir
>
> On Thu, Feb 4, 2016 at 9:13 PM, Manuri Amaya Perera <manu...@wso2.com>
> wrote:
>
>> Hi Azeez,
>>
>> I have sent the PR[1]. And please find the documentation here[2].
>>
>> [1] https://github.com/wso2/msf4j/pull/124
>> [2]
>> https://docs.google.com/a/wso2.com/document/d/1A5iS6JxbqVuazFwe_EVKeuaXiwCVzOoYOUlA7LSPTPY/edit?usp=sharing
>>
>> Thank you.
>>
>> On Thu, Feb 4, 2016 at 8:40 AM, Manuri Amaya Perera <manu...@wso2.com>
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> Aruna has explained the answers to your questions.
>>> Also you can find the previous discussion on creating maven archetypes
>>> for a generic osgi bundle and a carbon component can be found here[1].
>>>
>>> As we did for carbon-bundle-archetype and carbon-component-archetype[2],
>>> this also can be published to maven central so that anybody can use it
>>> without having to locally build it.
>>>
>>>
>>> [1] mail subject: [CARBON] Creating an archetype for a simple carbon
>>> component
>>> [2] https://repo1.maven.org/maven2/org/wso2/carbon
>>>
>>> Thank you.
>>>
>>>
>>>
>>> On Wednesday, 3 February 2016, Imesh Gunaratne <im...@wso2.com> wrote:
>>>
>>>> Hi Manuri,
>>>>
>>>> Would you mind explaining the purpose of this feature?
>>>> - What is an archetype?
>>>> - Why do we need it?
>>>> - What are we trying to achieve with it in MSF4J?
>>>>
>>>> Thanks
>>>>
>>>> On Wed, Feb 3, 2016 at 9:29 PM, Manuri Amaya Perera <manu...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Azeez,
>>>>>
>>>>> To place archetypes I have added a module "archetypes" under msf4j.
>>>>> The parent of the pom of this module is msf4j-parent. Under "archetypes"
>>>>> module I have created msf4j-microservice-archetype module which contains
>>>>> the archetype.
>>>>>
>>>>> The structure is as follows
>>>>> msf4j
>>>>> ├── archetypes
>>>>> │   ├── msf4j-microservice-archetype
>>>>> │   │   ├── pom.xml
>>>>> │   │   ├── src
>>>>> │   │   │   └── main
>>>>> │   │   │       └── resources
>>>>> │   │   │           ├── archetype-resources
>>>>> │   │   │           │   ├── pom.xml
>>>>> │   │   │           │   └── src
>>>>> │   │   │           │       └── main
>>>>> │   │   │           │           └── java
>>>>> │   │   │           │                 ├── Application.java
>>>>> │   │   │           │                 └── MicroService.java
>>>>> │   │   │           └── META-INF
>>>>> │   │   │               └── maven
>>>>> │   │   │                   └── archetype-metadata.xml
>>>>> │   ├── pom.xml
>>>>>
>>>>> For the project generated from the archetype the default values I have
>>>>> given at the moment are as follows,
>>>>>
>>>>> groupId = org.wso2.msf4j
>>>>> artifactId = org.wso2.msf4j.microservice
>>>>> version = 1.0.0-SNAPSHOT
>>>>> package = org.wso2.msf4j.microservice
>>>>>
>>>>> The structure of a project created from this archetype with the
>>>>> default values, is as follows,
>>>>> ├── pom.xml
>>>>> ├── src
>>>>> │   └── main
>>>>> │       └── java
>>>>> │           └── org
>>>>> │               └── wso2
>>>>> │                   └── msf4j
>>>>> │                       └── microservice
>>>>> │                           ├── Application.java
>>>>> │                           └── MicroService.java
>>>>>
>>>>>
>>>>> Application.java contains the main method. The class which contains
>>>>> methods for http CRUD operations is named as "MicroService.java" because
>>>>> that name should be a generic one.
>>>>>
>>>>> Please suggest if any changes are needed to be done.
>>>>>
>>>>> And for GET, POST, PUT, DELETE operations should there be any
>>>>> implementation?
>>>>> We can do something like, keeping some information in a datastructure
>>>>> and perform CRUD on it.  For example, create a POJO class Student and keep
>>>>> a map of students inside MicroService class.
>>>>> Any suggestions on this?
>>>>>
>>>>>
>>>>> Thank you.
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Manuri Amaya Perera*
>>>>>
>>>>> *Software Engineer*
>>>>>
>>>>> *WSO2 Inc.*
>>>>>
>>>>> *Blog: http://manuriamayaperera.blogspot.com
>>>>> <http://manuriamayaperera.blogspot.com>*
>>>>>
>>>>> _______________________________________________
>>>>> Architecture mailing list
>>>>> Architecture@wso2.org
>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Imesh Gunaratne*
>>>> Senior Technical Lead
>>>> WSO2 Inc: http://wso2.com
>>>> T: +94 11 214 5345 M: +94 77 374 2057
>>>> W: http://imesh.gunaratne.org
>>>> Lean . Enterprise . Middleware
>>>>
>>>>
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> <http://manuriamayaperera.blogspot.com>*
>>>
>>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> <http://manuriamayaperera.blogspot.com>*
>>
>> _______________________________________________
>> Architecture mailing list
>> Architecture@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>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*
>
> _______________________________________________
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

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

Reply via email to