butormenufactory.java

来自「一个实用工具类」· Java 代码 · 共 45 行

JAVA
45
字号
/* * Copyright (C) butor.com. All rights reserved. * * This software is published under the terms of the GNU Library General * Public License (GNU LGPL), a copy of which has been included with this * distribution in the LICENSE.txt file.  */package org.butor.web.menu;import java.util.Locale;import org.butor.log.Log;import org.butor.security.ISecurityChecker;/** * Factory for get menu objects. * * @author Nguyen The Hung */public abstract class ButorMenuFactory {	/**	 * Get the menu object.	 * @param menuId java.lang.String Name of the menu.	 * @param locale java.util.Locale	 * @param securityProvider Security provider to check menu item access rights.	 * 	 * @return org.butor.wak.menu.ButorMenu	 */	public static ButorMenu getMenu(String menuId, Locale locale, ISecurityChecker securityChecker) {		Log.logStr(Log.LOG_LEVEL_LOW,				   ButorMenuFactory.class,				   Log.LOG_TYPE_INFO,				   "getMenu()",				   "Building menu.");				   		MenuLoader loader = new MenuLoader(locale, menuId, securityChecker);		ButorMenu menu = loader.getMenu();				return menu;	}}

⌨️ 快捷键说明

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