What you describe sounds a lot like the extender pattern. Many frameworks like Declarative Services or Blueprint use this pattern.
I would not use it for start levels though. If you look at the frameworks they typically calculate the start order by your defined dependencies like service dependencies. This is much more robust than start levels. I would also propose to just choose one of the existing frameworks rather than creating your own one. In general the main question is: What do you want to achieve with your described agent. What is the actual problem you are facing? Christian On 19.12.2013 06:55, Tang Yong wrote: > Hi > > I have a question about bundle starting since I have started OSGi > related development. > > Whether considering bundle adaptive starting or not? > > Eg. > > Making an agent bundle, after installed bundles into OSGi runtime, the > agent bundle can scan current installed bundles and based on some > rule(annotations related to start level, new metadata for adaptive > starting...), adaptivly starting those bundles meeting up the rule. > > Want to listen your ideas. > > Best Regards! > Tang > -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
