@Maninda This is basically a template, as you said which can be used to create a carbon component easily.
@Harsha At the moment it has been decided to implement 1. a bundle archetype which is for generating a generic OSGi bundle and 2. a Carbon Component archetype which includes a service component which consumes some OSGi services registered in Carbon runtime after the review with the Carbon team. [2] And we are expecting to create more archetypes for different types of projects. Ideas on new archetypes for projects that can be generalized and have repetitively created project structures, patterns and configuration are welcome. [1] https://maven.apache.org/archetypes/maven-archetype-quickstart/ [2] mail subject: Invitation: Carbon bundle archetype - review @ Mon Nov 16, 2015 4:30pm - 5:30pm Thank you. On Mon, Nov 16, 2015 at 9:39 PM, Bhathiya Jayasekara <[email protected]> wrote: > > On Mon, Nov 16, 2015 at 9:22 PM, Harsha Thirimanna <[email protected]> > wrote: > >> We can add a sample service holder class also as a template in archetype >> to hold OSGi services that is consumed by this component. We may need to >> give a commented out code to show that usage and then anyone can follow >> that pattern. WDYT ? >> > > Yes, this is a good idea, because I've seen incorrect usage of Data holder > pattern in certain places. > > Thanks, > Bhathiya > > >> >> >> *Harsha Thirimanna* >> Senior Software Engineer; WSO2, Inc.; http://wso2.com >> * <http://www.apache.org/>* >> *email: **[email protected]* <[email protected]>* cell: +94 71 5186770 * >> *twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>* >> *harshathirimannlinked-in: **http: >> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 >> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>* >> >> *Lean . Enterprise . Middleware* >> >> >> On Sat, Nov 14, 2015 at 10:24 PM, Manuri Amaya Perera <[email protected]> >> wrote: >> >>> >>> >>> On Sat, Nov 14, 2015 at 10:18 PM, Manuri Amaya Perera <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> I have created an archetype for a simple carbon component. >>>> >>>> At the moment it has been added under carbon-kernel/archetypes as per >>>> the discussion during C5 progress review of the Carbon team. >>>> >>>> This is the structure for the archetype. >>>> >>>> archetypes >>>> ├── carbon-bundle-archetype >>>> │ ├── pom.xml >>>> │ └── src >>>> │ └── main >>>> │ └── resources >>>> │ ├── archetype-resources >>>> │ │ ├── pom.xml >>>> │ │ └── src >>>> │ │ ├── main >>>> │ │ │ └── java >>>> │ │ │ ├── Hello.java >>>> │ │ │ └── internal >>>> │ │ │ └── SampleBundleActivator.java >>>> │ │ └── test >>>> │ │ └── java >>>> │ │ └── HelloTest.java >>>> │ └── META-INF >>>> │ └── maven >>>> │ └── archetype-metadata.xml >>>> └── pom.xml >>>> >>>> In order to create a project from this archetype, you can enter the >>>> command as follows. >>>> >>>> mvn archetype:generate -DarchetypeGroupId=org.wso2.carbon >>>> -DarchetypeArtifactId=org.wso2.carbon.archetypes.bundle >>>> -DarchetypeVersion=5.0.0-SNAPSHOT -DgroupId=org.example >>>> -DartifactId=org.example.project -Dpackage=org.example.project >>>> -Dversion=1.0.0-SNAPSHOT >>>> >>>> Structure of the project created would be as follows. >>>> >>>> org.example.project >>>> ├── pom.xml >>>> └── src >>>> ├── main >>>> │ └── java >>>> │ └── org >>>> │ └── example >>>> │ └── project >>>> │ ├── Hello.java >>>> │ └── internal >>>> │ └── SampleBundleActivator.java >>>> └── test >>>> └── java >>>> └── org >>>> └── example >>>> └── project >>>> └── HelloTest.java >>>> >>>> >>>> Any comments/improvements ? >>>> >>>> >>>> Thank you. >>>> >>>> >>>> >>>> -- >>>> >>>> *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 >>> [email protected] >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > *Bhathiya Jayasekara* > *Senior Software Engineer,* > *WSO2 inc., http://wso2.com <http://wso2.com>* > > *Phone: +94715478185 <%2B94715478185>* > *LinkedIn: http://www.linkedin.com/in/bhathiyaj > <http://www.linkedin.com/in/bhathiyaj>* > *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* > *Blog: http://movingaheadblog.blogspot.com > <http://movingaheadblog.blogspot.com/>* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Manuri Amaya Perera* *Software Engineer* *WSO2 Inc.* *Blog: http://manuriamayaperera.blogspot.com <http://manuriamayaperera.blogspot.com>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
