org.apache.jsieve
Interface CommandManager

All Known Implementing Classes:
CommandManagerImpl

public interface CommandManager

Maps Command names to configured Command implementation classes.

Thread Safety

Implementation dependent. CommandManagerImpl is a thread safe implementation.


Method Summary
 ExecutableCommand getCommand(java.lang.String name)
          Gets an instance of a command by name.
 boolean isCommandSupported(java.lang.String name)
          Method isSupported answers a boolean indicating if a Command name is configured.
 

Method Detail

getCommand

ExecutableCommand getCommand(java.lang.String name)
                             throws LookupException

Gets an instance of a command by name.

Parameters:
name - - The name of the Command
Returns:
command, not null
Throws:
LookupException

isCommandSupported

boolean isCommandSupported(java.lang.String name)
Method isSupported answers a boolean indicating if a Command name is configured.

Parameters:
name - - The Command name
Returns:
boolean - True if the Command name is configured.


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.