public String getActionMappingClass() { return config.getActionMappingClass(); }
public Object createObject(Attributes attributes) { // Identify the name of the class to instantiate String className = attributes.getValue("className"); if (className == null) { ModuleConfig mc = (ModuleConfig) digester.peek(); className = mc.getActionMappingClass(); } // Instantiate the new object and return it Object actionMapping = null; try { actionMapping = RequestUtils.applicationInstance(className, cl); } catch (Exception e) { digester.getLogger().error("ActionMappingFactory.createObject: ", e); } return actionMapping; } }
public Object createObject(Attributes attributes) { // Identify the name of the class to instantiate String className = attributes.getValue("className"); if (className == null) { ModuleConfig mc = (ModuleConfig) digester.peek(); className = mc.getActionMappingClass(); } // Instantiate the new object and return it Object actionMapping = null; try { actionMapping = RequestUtils.applicationInstance(className); } catch (Exception e) { digester.getLogger().error( "ActionMappingFactory.createObject: ", e); } return actionMapping; }
/** * <p>Return <code>true</code> if information returned by * <code>config.getActionMappingClass</code> is all valid; otherwise, log * error messages and return <code>false</code>.</p> */ protected boolean verifyActionMappingClass() { String amcName = config.getActionMappingClass(); if (amcName == null) { LOG.error(servlet.getInternal().getMessage("verifyActionMappingClass.missing")); return (false); } try { Class amcClass = RequestUtils.applicationClass(amcName); } catch (ClassNotFoundException e) { LOG.error(servlet.getInternal().getMessage("verifyActionMappingClass.invalid", amcName)); return (false); } return (true); }
/** * <p>Return <code>true</code> if information returned by * <code>config.getActionMappingClass</code> is all valid; * otherwise, log error messages and return <code>false</code>.</p> */ protected boolean verifyActionMappingClass() { String amcName = config.getActionMappingClass(); if (amcName == null) { log(servlet.getInternal().getMessage ("verifyActionMappingClass.missing")); return (false); } try { Class amcClass = RequestUtils.applicationClass(amcName); } catch (ClassNotFoundException e) { log(servlet.getInternal().getMessage ("verifyActionMappingClass.invalid", amcName)); return (false); } return (true); }
public ActionConfig createActionConfig(ModuleConfig config, Class actionClass, String path, StrutsActionConfig strutsAction) { ActionConfig actionConfig = (ActionConfig) ClassUtil.newInstance(config.getActionMappingClass()); actionConfig.setModuleConfig(config); if (!StrutsActionConfig.DEFAULT_PATH.equals(strutsAction.path())) {