@Inject public Struts2PlexusInSpringObjectFactory( @Inject(value=StrutsConstants.STRUTS_OBJECTFACTORY_SPRING_AUTOWIRE,required=false) String autoWire, @Inject(value=StrutsConstants.STRUTS_OBJECTFACTORY_SPRING_AUTOWIRE_ALWAYS_RESPECT,required=false) String alwaysAutoWire, @Inject(value=StrutsConstants.STRUTS_OBJECTFACTORY_SPRING_USE_CLASS_CACHE,required=false) String useClassCacheStr, @Inject ServletContext servletContext, @Inject(StrutsConstants.STRUTS_DEVMODE) String devMode, @Inject Container container) { super(autoWire, alwaysAutoWire, useClassCacheStr, servletContext, devMode, container); }
/** * @param uploadFolder folder for uploads. default is "/uploads". */ @Inject(value = "struts.ckeditor.uploadFolder", required = false) public void setUploadFolder(String uploadFolder) { this.uploadFolder = uploadFolder; }
@Inject public void setReflectionProvider(ReflectionProvider prov) { this.reflectionProvider = prov; }
/** * @param allowedFileExtensions allowed file extensions. default is "". */ @Inject(value = "struts.ckeditor.allowedFileExtensions", required = false) public void setAllowedFileExtensions(String allowedFileExtensions) { this.allowedFileExtensions = allowedFileExtensions; }
@Inject public void setReflectionProvider(ReflectionProvider prov) { this.reflectionProvider = prov; }
/** * @param localeProvider a locale provider. */ @Inject public void setLocaleProvider(LocaleProvider localeProvider) { this.localeProvider = localeProvider; }
/** * @param packageLocators (Optional) A list of names used to find action packages. */ @Inject(value = ConventionConstants.CONVENTION_PACKAGE_LOCATORS, required = false) public void setPackageLocators(String packageLocators) { this.packageLocators = packageLocators.split("\\s*[,]\\s*"); }
/** * @param allowUploads allow file uploads. default is false. */ @Inject(value = "struts.ckeditor.allowUploads", required = false) public void setAllowUploads(String allowUploads) { this.allowUploads = allowUploads.equalsIgnoreCase("true"); }
/** * @param checkImplementsAction * (Optional) Map classes that implement * com.opensymphony.xwork2.Action as actions */ @Inject( value = ConventionConstants.CHECK_IMPLEMENTS_ACTION, required = false) public void setCheckImplementsAction(String checkImplementsAction) { this.checkImplementsAction = "true".equals(checkImplementsAction); }
/** * @param requireFollowsConvention * If true, only classes that follow the convention for action * classes will * be scanned for the scope annotations. */ @Inject(value = StrutsScopeConstants.REQUIRE_FOLLOWS_CONVENTION) public void setRequireFollowsConvention(String requireFollowsConvention) { this.requireFollowsConvention = "true".equals(requireFollowsConvention); }
/** * @param excludePackages (Optional) A list of packages that should be skipped when building * configuration. */ @Inject(value = ConventionConstants.CONVENTION_EXCLUDE_PACKAGES, required = false) public void setExcludePackages(String excludePackages) { if (StringUtils.isNotBlank(excludePackages)) { this.excludePackages = excludePackages.split("\\s*[,]\\s*"); } }
/** * @param actionPackages * (Optional) An optional list of action packages that this * should create configuration for. */ @Inject(value = ConventionConstants.ACTION_PACKAGES, required = false) public void setActionPackages(String actionPackages) { if (StringUtils.isNotBlank(actionPackages)) { this.actionPackages = actionPackages.split("\\s*[,]\\s*"); } }
/** * @param actionPackages (Optional) An optional list of action packages that this should create * configuration for. */ @Inject(value = ConventionConstants.CONVENTION_ACTION_PACKAGES, required = false) public void setActionPackages(String actionPackages) { if (StringUtils.isNotBlank(actionPackages)) { this.actionPackages = actionPackages.split("\\s*[,]\\s*"); } }
@Inject(value = XWorkConstants.ENABLE_OGNL_EVAL_EXPRESSION, required = false) public void setEnableEvalExpression(String evalExpression) { enableEvalExpression = "true".equals(evalExpression); if(enableEvalExpression){ LOG.warn("Enabling OGNL expression evaluation may introduce security risks " + "(see http://struts.apache.org/release/2.3.x/docs/s2-013.html for further details)"); } }
@Inject(value = XWorkConstants.OGNL_EXCLUDED_CLASSES, required = false) public void setExcludedClasses(String commaDelimitedClasses) { Set<Class<?>> excludedClasses = new HashSet<Class<?>>(); excludedClasses.addAll(this.excludedClasses); excludedClasses.addAll(parseExcludedClasses(commaDelimitedClasses)); this.excludedClasses = Collections.unmodifiableSet(excludedClasses); }
/** * @param eagerLoading (Optional) If set, found action classes will be instantiated by the ObjectFactory to accelerate future use * setting it up can clash with Spring managed beans */ @Inject(value = ConventionConstants.CONVENTION_ACTION_EAGER_LOADING, required = false) public void setEagerLoading(String eagerLoading) { this.eagerLoading = BooleanUtils.toBoolean(eagerLoading); }
/** * @param flatResultLayout If 'true' result resources will be expected to be in the form * ${namespace}/${actionName}-${result}.${extension}, otherwise in the form * ${namespace}/${actionName}/${result}.${extension} */ @Inject(ConventionConstants.CONVENTION_RESULT_FLAT_LAYOUT) public void setFlatResultLayout(String flatResultLayout) { this.flatResultLayout = BooleanUtils.toBoolean(flatResultLayout); }
@Inject(required = true) public void setServletContext(ServletContext servletContext) { WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext); context.getAutowireCapableBeanFactory().autowireBean(this); }