catalog.view.bean
Class BaseBean

java.lang.Object
  extended bycatalog.view.bean.BaseBean
Direct Known Subclasses:
ApplicationBean, MessageBean, ProductBean, ProductListBean, UserBean

public class BaseBean
extends java.lang.Object

Author:
Derek Y. Shen

Field Summary
protected  org.apache.commons.logging.Log logger
           
protected  ServiceLocator serviceLocator
           
 
Constructor Summary
BaseBean()
           
 
Method Summary
 ServiceLocator getServiceLocator()
           
protected  void init()
          Used to initialize the managed bean.
 void setServiceLocator(ServiceLocator newServiceLocator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger

serviceLocator

protected ServiceLocator serviceLocator
Constructor Detail

BaseBean

public BaseBean()
Method Detail

getServiceLocator

public ServiceLocator getServiceLocator()

setServiceLocator

public void setServiceLocator(ServiceLocator newServiceLocator)

init

protected void init()
Used to initialize the managed bean.

Called after the service locator is set. It is a workaround.

Once the JSF bean management facility can support init method, the init method can be configured and called from the JSF implementation directly.



Copyright (c) 2004 The JCatalog Project.