msgresflush.java

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

JAVA
56
字号
/* * 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.messageResources.service;import org.butor.bls.IOutputResponse;import org.butor.bls.IRequest;import org.butor.bls.Service;import org.butor.bls.ServiceException;import org.butor.dataStruct.Message;import org.butor.messageResources.MessageResourcesService;import org.butor.messageResources.service.bean.MsgResFlushParam;/** * TODO *  * @author sawanai * Jul 5, 2004 */public class MsgResFlush extends Service {		/**	 * 	 */	public MsgResFlush(String appName) {		super(MsgResFlushParam.RPC_NAME +"-" +appName.toLowerCase());	}		public String getDescription() {		return "Message Resources Service flush proclet.";	}		/**	 * ParamBean class	 * @see org.butor.bls.IService#getParamBeanClass()	 */	public Class getServiceParamBeanClass() {		return MsgResFlushParam.class;	}	public IOutputResponse execute(IRequest request) throws ServiceException {		IOutputResponse response = request.createResponse();		int stat = 0;		MessageResourcesService.flush();		response.addMessage(new Message(stat, Message.INFO, "Message Resources flushed."));		response.endResponse(stat);		return response;	}}

⌨️ 快捷键说明

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