org.mockftpserver.core.command
Class ReplyTextBundleUtil

java.lang.Object
  extended by org.mockftpserver.core.command.ReplyTextBundleUtil

public final class ReplyTextBundleUtil
extends Object

Contains common utility method to conditionally set the reply text ResourceBundle on a CommandHandler instance.

Version:
$Revision: 184 $ - $Date: 2008-12-03 17:52:39 -0500 (Wed, 03 Dec 2008) $
Author:
Chris Mair

Constructor Summary
ReplyTextBundleUtil()
           
 
Method Summary
static void setReplyTextBundleIfAppropriate(CommandHandler commandHandler, ResourceBundle replyTextBundle)
          Set the replyTextBundle property of the specified CommandHandler to the ResourceBundle if and only if the commandHandler implements the ReplyTextBundleAware interface AND its replyTextBundle property has not been set (is null).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplyTextBundleUtil

public ReplyTextBundleUtil()
Method Detail

setReplyTextBundleIfAppropriate

public static void setReplyTextBundleIfAppropriate(CommandHandler commandHandler,
                                                   ResourceBundle replyTextBundle)
Set the replyTextBundle property of the specified CommandHandler to the ResourceBundle if and only if the commandHandler implements the ReplyTextBundleAware interface AND its replyTextBundle property has not been set (is null).

Parameters:
commandHandler - - the CommandHandler instance
replyTextBundle - - the ResourceBundle to use for localizing reply text
Throws:
AssertFailedException - - if the commandHandler is null


Copyright © 2014. All rights reserved.