Hi Denis, Your extended aspect needs not be exported by the governance.registry.extensions bundle. For example, we have another bundle governance.platform.extensions, with some extensions that are generic. Likewise, you can introduce your own bundle.
Thanks, Senaka. On Tue, Nov 8, 2011 at 10:09 AM, Denis Weerasiri <[email protected]> wrote: > Hi, > I've written an OSGi bundle to be shipped with carbon (3.2.2) which > implements a simple governance Life-cycle. > So I need to > extend org.wso2.carbon.registry.extensions.aspects.DefaultLifecycle. > > But org.wso2.carbon.registry.extensions_3.2.2 bundle doesn't export > this required package (org.wso2.carbon.registry.extensions.aspects). > Shouldn't we export this API as well? > > Currently org.wso2.carbon.registry.extensions_3.2.2 bundle only export the > following packages. > Exported packages > org.wso2.carbon.registry.extensions.handlers.utils; > version="0.0.0"[exported] > org.wso2.carbon.registry.extensions.utils; version="0.0.0"[exported] > org.wso2.carbon.registry.extensions.handlers; version="0.0.0"[exported] > > > My implementation would be something like this. > > import org.wso2.carbon.registry.extensions.aspects.DefaultLifecycle; > public class AutomatedServiceVersioningLifeCycle extends DefaultLifecycle { > ... > } > > -- > Thanks, > Denis > ---------------------------------------------------------- > *Denis Weerasiri* > Software Engineer; WSO2 Inc.; http://wso2.com, > *email: denis <http://goog_277208233/>** [AT] wso2.com* <http://wso2.com/> > * > * > *site: > **https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/> > *blog: **http://ddweerasiri.blogspot.com*<http://ddweerasiri.blogspot.com/> > * > twitter: **http://twitter.com/ddweerasiri*<http://twitter.com/ddweerasiri> > * > linked-in: > **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri> > > -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
