Package uk.org.toot.service

This package provides a small framework for plugin services.

See:
          Description

Class Summary
ServiceDescriptor A ServiceDescriptor describes a service to help UIs use a name, implementations be created etc.
ServicePrinter An example of using the Visitor pattern to print ServiceDescriptors provided by ServiceProviders.
ServiceProvider An abstract ServiceProvider.
Services Services encapsulates the platform=specific provision of service lookup.
ServiceVisitor ServiceVisitor defines the Gang of Four Visitor pattern contract for visiting service providers and their provided service descriptors.
 

Package uk.org.toot.service Description

This package provides a small framework for plugin services.

ServiceProvider comprises one or more ServiceDescriptors which each describe an individual service.

An abstract ServiceVisitor is provided to visit ServiceProviders and ServiceDescriptors. ServicePrinter is a concrete ServiceVisitor which prints details of the available ServiceProviders and ServiceDescriptors.

Services encapsulates the java version dependency, prior to being exposed as java.util.ServiceLoader in JSE 6 the functionality was only available as com.sun.Service.

Package uk.org.toot.service UML Class Diagram

Note that generic methods are unfortunately not displayed in the UML class diagram, hence Services appears empty, which it is not. Also, generic links are not displayed, so ServiceProvider and ServiceDescriptor do not appear to be associated, which they are. Still, better than no UML I suppose.



Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.