|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jsieve.CommandManagerImpl
public class CommandManagerImpl
Maps command names to comman implementations.
Instances may safely be accessed concurrently by multiple threads.
| Constructor Summary | |
|---|---|
CommandManagerImpl(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> classNameMap)
Constructor for CommandManager. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getClassName(java.lang.String name)
Method getClassName answers the name of the class to which a Command name is mapped. |
ExecutableCommand |
getCommand(java.lang.String name)
Method newInstance answers an instance of the class to which a Command name is mapped. |
boolean |
isCommandSupported(java.lang.String name)
Method isSupported answers a boolean indicating if a Command name is configured. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandManagerImpl(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> classNameMap)
| Method Detail |
|---|
public ExecutableCommand getCommand(java.lang.String name)
throws LookupException
Method newInstance answers an instance of the class to which a Command name is mapped.
getCommand in interface CommandManagername - -
The name of the Command
LookupExceptionpublic boolean isCommandSupported(java.lang.String name)
isCommandSupported in interface CommandManagername - -
The Command name
protected java.lang.String getClassName(java.lang.String name)
throws LookupException
Method getClassName answers the name of the class to which a Command name is mapped.
name - -
The name of the Command
LookupException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||