Package com.day.cq.wcm.command.api
Interface CommandBuilderFactory
factory interface to create the required
CommandBuilder
-
Method Summary
Modifier and TypeMethodDescription<T extends CommandBuilder>
TcreateCommandBuilder
(Class<T> clazz) creates the requiredCommandBuilder
-
Method Details
-
createCommandBuilder
@Nonnull <T extends CommandBuilder> T createCommandBuilder(@Nonnull Class<T> clazz) throws IllegalArgumentException creates the requiredCommandBuilder
- Parameters:
clazz
- class name of the required command builder- Returns:
- the required
CommandBuilder
- Throws:
IllegalArgumentException
- if the clazz argument is unsupported
-