Hi,

I already try to send the first question but my subscribtion on the mailling list failed so i can't if they are somes responses. Sorry for the spam.

First Question : I'm working on Event in OSGi and i found some differences  between OSGi R4 specification and org.osgi.compendium.
In OSGI R4 , a topic is defined by : topic ::= token ( ' / ' token ) *    (see Topics 113.3.1 OSGi Compendium)
and a token is : token ::= ( alphanum | ’_’ | ’-’ )* and alphanum ::= alpha | digit and digit ::= [0..9] and alpha ::= [a..zA..Z]
(see General Syntax Definitions 1.4.2 OSGi Core)
So, we can have a topic with an empty name (due to the * operator in token's definition ) or a topic begins with '-' or '_' or a digit.

But, in the org.osgi.event.Event code, the validateToken() method is used to validate a topic. This method invalidate all topics beginning with '_' or '-' or a digit and also invalidate topics with empty name.

Is it an error ? What "definition" must i respect??? OSGi R4 spec or org.osgi.event.Event ???

Second question : in Topics handler, when you configure your handler with "foo/bar/* ", will you receive the event propagate on foo/bar???

Regards,
Oullion Michael,
Student in Adele Team, LSR laboratory, France

_______________________________________________
osgi-dev mailing list
osgi-dev@bundles.osgi.org
http://bundles.osgi.org/mailman/listinfo/osgi-dev

Reply via email to