com.codemonster.surinam.core.framework
Class ServiceFinderFactory

java.lang.Object
  extended by com.codemonster.surinam.core.framework.ServiceFinderFactory

public class ServiceFinderFactory
extends Object

This class is designed to make it easy to acquire ServiceFinders for any given Service Block. Finders are cached, shared and tied to individual SBs so the finder you get will depend on the SB you give while multiple requests given the same SB returns the same Service Finder.


Method Summary
static ServiceFinder getFinder(ServiceBlock serviceBlock)
          We will use the factory to create instances of ServiceFinders, which use the given ServiceBlock as it's context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFinder

public static ServiceFinder getFinder(ServiceBlock serviceBlock)
We will use the factory to create instances of ServiceFinders, which use the given ServiceBlock as it's context. The design of this implies that there might be more than one ServiceBlock one but the current restriction keeps the relationship one to one.

Parameters:
serviceBlock - This is the Service Block that the finder will use for its searches.
Returns:
Returns the ServiceFinder instance.


Copyright © 2010. All Rights Reserved.