Hi Kasun, I think what you meant to say was that lifecycle listeners must implement the org.wso2.carbon.kernel.deployment.LifecycleListener interface and need to be registered via an OSGi service. I think you missed to mention the structure of LifecycleEvent class and the OSGi service that will allow this listener to be registered.
I see that you have derived this from Tomcat life-cycle listener interface which really suits the Carbon deployment model as well. In that case we might need to come up with event data structure for various types of artifacts. Thanks. On Wed, Mar 23, 2016 at 1:53 PM, KasunG Gajasinghe <[email protected]> wrote: > > > On Wed, Mar 23, 2016 at 10:12 AM, KasunG Gajasinghe <[email protected]> > wrote: > >> >> >> On Wednesday, March 23, 2016, Aruna Karunarathna <[email protected]> wrote: >> >>> >>> >>> On Tue, Mar 22, 2016 at 9:44 PM, KasunG Gajasinghe <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> To provide extensibility to the C5 deployment engine, we need to add >>>> the lifecycle listener support to it. The immediate need is to provide the >>>> deployment coordination feature. >>>> >>>> Hi Kasun, >>> >>> Better if you can share the deployment coordiation plan for C5 as well. >>> >> >> >> Yes, that'll be a separate discussion! :-) >> > > See [1]. > > [1] [C5] Artifact deployment coordination support for C5 > > >> >> >>> >>> Regards, >>> Aruna >>> >>>> Initially, may be we can support following four lifecycle events. The >>>> first two will be triggered before and after artifact deployment, while the >>>> latter two will be triggered before and after artifact undeployment. >>>> >>>> BEFORE_START_EVENT >>>> AFTER_START_EVENT >>>> BEFORE_STOP_EVENT >>>> AFTER_STOP_EVENT >>>> >>>> The lifecycle listener registration can be done via OSGi services that >>>> implements org.wso2.carbon.kernel.deployment.LifecycleListener. This >>>> interface has one method - >>>> >>>> public interface LifecycleListener { >>>> void lifecycleEvent(LifecycleEvent event); >>>> } >>>> >>>> Any suggestions? >>>> >>>> Thanks, >>>> KasunG >>>> >>>> -- >>>> >>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. >>>> email: kasung AT spamfree wso2.com >>>> linked-in: http://lk.linkedin.com/in/gajasinghe >>>> blog: http://kasunbg.org >>>> >>>> >>>> >>>> _______________________________________________ >>>> Architecture mailing list >>>> [email protected] >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> >>> *Aruna Sujith Karunarathna * >>> WSO2, Inc | lean. enterprise. middleware. >>> #20, Palm Grove, Colombo 03, Sri Lanka >>> Mobile: +94 71 9040362 | Work: +94 112145345 >>> Email: [email protected] | Web: www.wso2.com >>> >>> >> >> >> -- >> ~~--~~ >> Sending this mail via my phone. Do excuse any typo or short replies >> > > > > -- > > *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. > email: kasung AT spamfree wso2.com > linked-in: http://lk.linkedin.com/in/gajasinghe > blog: http://kasunbg.org > > > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Akila Ravihansa Perera WSO2 Inc.; http://wso2.com/ Blog: http://ravihansa3000.blogspot.com
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
