public interface LocalCommandFactory
AdHocCommandManager.registerCommand(String, String, LocalCommandFactory)
.Modifier and Type | Method and Description |
---|---|
LocalCommand |
getInstance()
Returns an instance of a LocalCommand.
|
LocalCommand getInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.SecurityException
java.lang.InstantiationException
- if creating an instance failed.java.lang.IllegalAccessException
- if creating an instance is not allowed.java.lang.SecurityException
- if there was a security violation.java.lang.NoSuchMethodException
- if no such method is declaredjava.lang.reflect.InvocationTargetException
- if a reflection-based method or constructor invocation threw.java.lang.IllegalArgumentException
- if an illegal argument was given.