org.perfectjpattern.jee.api.business.servicelocator
Interface IServiceLocator

Type Parameters:
S - Service type
All Known Implementing Classes:
ServiceLocator

public interface IServiceLocator

Service Locator Pattern: Centralizes distributed service object lookups, provides a centralized point of control, and may act as a cache that eliminates redundant lookups. It also encapsulates any vendor- specific features of the lookup process.

Responsibility Abstract definition of the "Service Locator":

Version:
$Revision: 1.0 $Date: Feb 6, 2009 9:35:08 PM $
Author:
Giovanni Azua
 

Method Summary
<S> S
locate(String aName)
          Returns the matching Service found
 void shutdown()
          Shutdown IServiceLocator and releases resources
 

Method Detail

locate

<S> S locate(String aName)
         throws IllegalArgumentException
Returns the matching Service found

Parameters:
aName - Name of Service to lookup
Returns:
matching Service found
Throws:
IllegalArgumentException

shutdown

void shutdown()
Shutdown IServiceLocator and releases resources



Copyright © 2007-2009. All Rights Reserved.