本文整理了Java中com.opensymphony.xwork2.inject.Inject.<init>()
方法的一些代码示例,展示了Inject.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Inject.<init>()
方法的具体详情如下:
包路径:com.opensymphony.xwork2.inject.Inject
类名称:Inject
方法名:<init>
暂无
代码示例来源:origin: org.codehaus.redback/plexus-spring
@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);
}
代码示例来源:origin: com.jgeppert.struts2.jquery/struts2-jquery-richtext-plugin
/**
* @param uploadFolder folder for uploads. default is "/uploads".
*/
@Inject(value = "struts.ckeditor.uploadFolder", required = false)
public void setUploadFolder(String uploadFolder) {
this.uploadFolder = uploadFolder;
}
代码示例来源:origin: javamonkey/beetl2.0
@Inject
public void setReflectionProvider(ReflectionProvider prov)
{
this.reflectionProvider = prov;
}
代码示例来源:origin: com.jgeppert.struts2.jquery/struts2-jquery-richtext-plugin
/**
* @param allowedFileExtensions allowed file extensions. default is "".
*/
@Inject(value = "struts.ckeditor.allowedFileExtensions", required = false)
public void setAllowedFileExtensions(String allowedFileExtensions) {
this.allowedFileExtensions = allowedFileExtensions;
}
代码示例来源:origin: com.ibeetl/beetl
@Inject
public void setReflectionProvider(ReflectionProvider prov)
{
this.reflectionProvider = prov;
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
/**
* @param localeProvider a locale provider.
*/
@Inject
public void setLocaleProvider(LocaleProvider localeProvider) {
this.localeProvider = localeProvider;
}
代码示例来源:origin: org.apache.struts/struts2-convention-plugin
@Inject
public DefaultActionNameBuilder(
@Inject(ConventionConstants.CONVENTION_ACTION_NAME_LOWERCASE) String lowerCase
) {
this.lowerCase = Boolean.parseBoolean(lowerCase);
}
代码示例来源:origin: org.apache.struts/struts2-convention-plugin
/**
* @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*");
}
代码示例来源:origin: com.jgeppert.struts2.jquery/struts2-jquery-richtext-plugin
/**
* @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");
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject
public DefaultValidatorFactory(@Inject ObjectFactory objectFactory, @Inject ValidatorFileParser parser) {
this.objectFactory = objectFactory;
this.validatorFileParser = parser;
parseValidators();
}
代码示例来源:origin: com.googlecode.struts2-conversation/struts2-conversation-scope-plugin
/**
* @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);
}
代码示例来源:origin: com.googlecode.struts2-conversation/struts2-conversation-scope-plugin
/**
* @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);
}
代码示例来源:origin: org.apache.struts/struts2-convention-plugin
/**
* @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*");
}
}
代码示例来源:origin: com.googlecode.struts2-conversation/struts2-conversation-scope-plugin
/**
* @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*");
}
}
代码示例来源:origin: org.apache.struts/struts2-convention-plugin
/**
* @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*");
}
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@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)");
}
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@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);
}
代码示例来源:origin: org.apache.struts/struts2-convention-plugin
/**
* @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);
}
代码示例来源:origin: org.apache.struts/struts2-convention-plugin
/**
* @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);
}
代码示例来源:origin: org.onebusaway/onebusaway-presentation
@Inject(required = true)
public void setServletContext(ServletContext servletContext) {
WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
context.getAutowireCapableBeanFactory().autowireBean(this);
}
内容来源于网络,如有侵权,请联系作者删除!