basebean.java

来自「spring+Hibernate +jsf」· Java 代码 · 共 28 行

JAVA
28
字号
package login.view.bean;

import login.view.servicelocator.ServiceLocator;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class BaseBean {
	protected static final Log log = LogFactory.getLog(BaseBean.class);

	// the service locator of the business services
	protected ServiceLocator serviceLocator;

	public ServiceLocator getServiceLocator() {
		return this.serviceLocator;
	}

	public void setServiceLocator(ServiceLocator newServiceLocator) {
		this.log.debug("service locator is set");
		this.serviceLocator = newServiceLocator;

		this.init();
	}

	protected void init() {
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?