I want to state a scene why having such a need. Currently, glassfish uses HK2 on top of felix, and HK2 is a jsr330's implementation and uses @Inject and @Service to seperate Service Consumer and Service Provider.
We want to use OBR to on-demand install and deploy bundles. Once using OBR to generate a repository xml based glassfish related bundles, because some bundles used @Inject to dynamic get services, we also consider @Inject as some requirement and @Serivce as some capability. Then, I wish that I can add these requirements and capabilities under existed resources dynamiclly. I have seen OBR's source and in reality, ResourceImpl has some methods to add requirements and capabilities, however, Resource and other API have not exposed similar methods. Thanks. --Tang Tang Yong wrote: > Hi Team, > > I have a question about OBR adding capability or requirement under given > resource. > > [Question] > Assuming a repository.xml has been generated based current bundles, > then, I need to update the repository.xml in a programming way, for > example, I want to add capability or requirement under given resource. > > However, current OBR API seems not to support the scene. I have seen > DataModelHelper interface and I think that whether can add the following > method or not to support the scene? > > String AddCapability(Capability capability, Resource resource); > > String AddRequirement(Requirement requirement, Resource resource); > > Could you please give me some advice? > > Thanks. > --Tang > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

