[jboss-dev-forums] [JBoss OSGi Development] - Re: Service integration with MC

alesj do-not-reply at jboss.com
Wed Nov 11 11:04:13 EST 2009


"adrian at jboss.org" wrote : 
  | What do you mean by key? 
  | 
Both "keys".
What to register against and how to do lookup.

Register against:
Exposing classes when there are also properties doesn't seem right.

Lookup against:
Same as "register against", doing lookup just on registered classes when there are existing properties, shouldn't match.

Or should we treat this just as a MatchAllFilter lookup and type/class matching is actually enough / the right way?

"adrian at jboss.org" wrote : 
  | The name of the OSGi service context should be something generated that won't change
  | or interfere with other names
  | e.g. a UID or $OSGiService + serviceID
  | 
That's already done - it's GUID.

"adrian at jboss.org" wrote : 
  | Ideally you need an index (rather than a key) by class name to optimize the search
  | but we don't currently do that in the OSGi prototype.
  | You should already have something similar for the anonymous injection
  | and the install callbacks which should be more efficient than what is currently used?
  | 
We have such mechanism already in KernelController, but it requires KernelControllerContext.
I'll see if (or how) I can make that less restrictive.

"adrian at jboss.org" wrote : 
  | The only thing that is probably missing is the security check?
  | 
The whole MC is missing this. ;-)


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265089#4265089

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265089



More information about the jboss-dev-forums mailing list