Hi,

The InventoryPrinter service is the successor of the Web Console 
ConfigurationPrinter service. And like the ConfigurationPrinter service an 
InventoryPrinter service does not need to be registered as an InventoryPrinter 
service: As long as the service is registered with some service registration 
properties and a method

    print(String, PrintWriter, boolean)

is defined, the service will be accepted as an InventoryPrinter.

The question is how to find this method ?

  * Search in the service's class only or in the class hierarchy ?
  * Supporting public/protected only or also package private
    and private methods ?

My opinion would be:

(a) search the implementation class only
(b) accept all method modifiers
(c) document to prefer private

Alternatively we could search the class hierarchy as is defined in section 
112.9.4 (Locating Component Methods) of the Declarative Services specification.

WDYT ?

Regards
Felix

PS: Web Console 4 supported (for the ConfigurationPrinter) searching the 
implementation class only and supporting any modifier.

--
Felix Meschberger | Principal Scientist | Adobe







Reply via email to