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
