Class PCMModelCommandExecutor

    • Constructor Detail

      • PCMModelCommandExecutor

        @Inject
        public PCMModelCommandExecutor​(PCMModel pcm)
        Constructs an executor that is capable of executing ICommands operating on PCM models.
        Parameters:
        pcm - the PCM model on which executed commands operate
    • Method Detail

      • execute

        public <T> T execute​(ICommand<T,​PCMModel> command)
        Executes the specified command.
        Specified by:
        execute in interface ICommandExecutor<PCMModel>
        Parameters:
        command - the command that is to be executed
        Returns:
        the result of executing the specified command, or null if the return type (T) is Void.