throw designer.addIssue("Failed to read in template at location '" + location + "' with charset '" + (locationCharset == null ? "<default>" : locationCharset + ")"), ex);
@Override protected DependencyMetaData[] extractClassManagedObjectDependencies(String objectName, Class<?> sectionClass) throws Exception { // Extract the dependency meta-data for default behaviour DependencyMetaData[] metaData = super.extractClassManagedObjectDependencies(objectName, sectionClass); // Determine if stateful boolean isStateful = isHttpSessionStateful(sectionClass); // If not stateful, return meta-data for default behaviour if (!isStateful) { return metaData; } // As stateful, must not have any dependencies into object if (metaData.length > 0) { throw this.getDesigner() .addIssue("Template logic class " + sectionClass.getName() + " is annotated with " + HttpSessionStateful.class.getSimpleName() + " and therefore can not have dependencies injected into the object (only its methods)"); } // Return the dependency meta-data for stateful template logic return new DependencyMetaData[] { new StatefulDependencyMetaData() }; }
@Override protected DependencyMetaData[] extractClassManagedObjectDependencies(String objectName, Class<?> sectionClass) throws Exception { // Extract the dependency meta-data for default behaviour DependencyMetaData[] metaData = super.extractClassManagedObjectDependencies(objectName, sectionClass); // Determine if stateful boolean isStateful = this.isHttpSessionStateful(sectionClass); // If not stateful, return meta-data for default behaviour if (!isStateful) { return metaData; } // As stateful, must not have any dependencies into object if (metaData.length > 0) { this.getDesigner() .addIssue("Template logic class " + sectionClass.getName() + " is annotated with " + HttpSessionStateful.class.getSimpleName() + " and therefore can not have dependencies injected into the object (only its methods)"); } // Return the dependency meta-data for stateful template logic return new DependencyMetaData[] { new StatefulDependencyMetaData() }; }
&& (HttpTemplateParserImpl.DEFAULT_FIRST_SECTION_NAME.equals(sectionName)))) { designer.addIssue("Section '" + sectionName + "' can not be introduced, as no previous override section (section prefixed with '" + OVERRIDE_SECTION_PREFIX + "') to identify where to inherit"); if ((isIntroducedSection) && (parentSectionNames.contains(introducedSectionName))) { designer.addIssue("Section '" + introducedSectionName + "' already exists by inheritance and not flagged for overriding (with '" + OVERRIDE_SECTION_PREFIX + "' prefix)"); designer.addIssue("No inherited section exists for overriding by section '" + notOverrideSectionName + "'");
.addIssue("Template logic class " + sectionClass.getName() + " is annotated with " + HttpSessionStateful.class.getSimpleName() + " but is not " + Serializable.class.getSimpleName());
.addIssue("Template logic class " + sectionClass.getName() + " is annotated with " + HttpSessionStateful.class.getSimpleName() + " but is not " + Serializable.class.getSimpleName());
throw designer.addIssue("Section '" + sectionName + "' can not be introduced, as no previous override section (section prefixed with '" + OVERRIDE_SECTION_PREFIX + "') to identify where to inherit"); throw designer.addIssue("Section '" + introducedSectionName + "' already exists by inheritance and not flagged for overriding (with '" + OVERRIDE_SECTION_PREFIX + "' prefix)"); throw designer.addIssue( "No inherited section exists for overriding by section '" + notOverrideSectionName + "'"); .parseBoolean(context.getProperty(PROPERTY_IS_PATH_PARAMETERS, String.valueOf(false))); if (isPathParameters && (!isLogicClass)) { throw designer.addIssue("Must provide logic class, as template has path parameters"); throw designer.addIssue( "No method by name '" + redirectValuesFunctionName + "' on logic class " + sectionClassName); } else { throw designer.addIssue(WebTemplate.class.getSimpleName() + " has path parameters but no redirect values function configured"); throw designer.addIssue("Must provide template logic class for template " + templatePath); } else { throw designer.addIssue("Missing method '" + beanMethodName + "' on class " + this.sectionClass.getName() + " to provide bean for template " + templatePath); throw designer.addIssue("Template bean method '" + beanMethodName + "' must not have a @"
designer.addIssue("Must provide template logic class for template " + templateUriPath); } else { designer.addIssue("Missing method '" + beanMethodName + "' on class " + this.sectionClass.getName() + " to provide bean for template " + templateUriPath); designer.addIssue("Template bean method '" + beanMethodName + "' must not have a " + Parameter.class.getSimpleName() + " annotation"); designer.addIssue("Template bean method '" + method.getName() + "' (task " + beanTaskKey + ") must not be annotated with " + NextTask.class.getSimpleName()); designer.addIssue("Bean method '" + beanMethodName + "' must have return value"); designer.addIssue("Link '" + configuredLinkName + "' does not exist on template " + templateUriPath);