public interface LocalCommandFactoryA factory for creating local commands. It's useful in cases where instantiation of a command is more complicated than just using the default constructor. For example, when arguments must be passed into the constructor or when using a dependency injection framework. When a LocalCommandFactory isn't used, you can provide the AdHocCommandManager a Class object instead. For more details, see
AdHocCommandManager.registerCommand(String, String, LocalCommandFactory).
LocalCommand getInstance() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityExceptionReturns an instance of a LocalCommand.
- a LocalCommand instance.
InstantiationException- if creating an instance failed.
IllegalAccessException- if creating an instance is not allowed.
SecurityException- if there was a security violation.
NoSuchMethodException- if no such method is declared
InvocationTargetException- if a reflection-based method or constructor invocation threw.
IllegalArgumentException- if an illegal argument was given.