On Jul 28, 2008, at 5:32 AM, Wang Ning wrote: > Hi, > > I want to change some class to plexus component. I see some code of > xwiki. I have 2 questions. > > 1. Only adding "String ROLE = **.class.getName()" in a class, can > change a normal class to plexus component? Should I write some plexus > config file in somewhere?
See http://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HComponentDevelopment > 2. How to get a plexus components? > Use a componentManagement.getComponent(ROLE) can get a component, but > I don't know how to get the componentManagement. See link above too. > Forget me if those two question is too stupid. Not it's not, don't worry. I've just created this documentation since we didn't have one before. Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

