catalog.view.bean
Class ServiceLocatorBean

java.lang.Object
  extended bycatalog.view.bean.ServiceLocatorBean
All Implemented Interfaces:
ServiceLocator

public class ServiceLocatorBean
extends java.lang.Object
implements ServiceLocator

The implementation of ServiceLocator.

This class is managed by the JSF managed bean facility, and is set with application scope.

Author:
Derek Y. Shen
See Also:
ServiceLocator

Constructor Summary
ServiceLocatorBean()
          Constructor.
 
Method Summary
 CatalogService getCatalogService()
          Get the CatalogService
 UserService getUserService()
          Get the UserService
 java.lang.Object lookupService(java.lang.String serviceBeanName)
          Lookup service based on service bean name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLocatorBean

public ServiceLocatorBean()
Constructor.

The following steps being done:

Method Detail

getCatalogService

public CatalogService getCatalogService()
Get the CatalogService

Specified by:
getCatalogService in interface ServiceLocator
Returns:
the catalog service

getUserService

public UserService getUserService()
Get the UserService

Specified by:
getUserService in interface ServiceLocator
Returns:
the user service

lookupService

public java.lang.Object lookupService(java.lang.String serviceBeanName)
Lookup service based on service bean name.

Parameters:
serviceBeanName - the service bean name
Returns:
the service bean


Copyright (c) 2004 The JCatalog Project.