/** * Creates instance which will be used to initialize, run, and destroy the custom action. * @param customActionContext an instance of context * @param instantiator to instantiates the custom action class * @param classLoader used to load the custom action class * @throws Exception when failed to instantiate the custom action */ CustomActionExecutor(BasicCustomActionContext customActionContext, InstantiatorFactory instantiator, ClassLoader classLoader) throws Exception { this.customActionContext = customActionContext; this.customAction = createCustomAction(customActionContext, instantiator, classLoader); }
/** * Creates instance which will be used to initialize, run, and destroy the custom action. * @param customActionContext an instance of context * @param instantiator to instantiates the custom action class * @param classLoader used to load the custom action class * @throws Exception when failed to instantiate the custom action */ CustomActionExecutor(BasicCustomActionContext customActionContext, InstantiatorFactory instantiator, ClassLoader classLoader) throws Exception { this.customActionContext = customActionContext; this.customAction = createCustomAction(customActionContext, instantiator, classLoader); }