本文整理了Java中com.opensymphony.xwork2.inject.Inject
类的一些代码示例,展示了Inject
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Inject
类的具体详情如下:
包路径:com.opensymphony.xwork2.inject.Inject
类名称:Inject
暂无
代码示例来源: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: org.apache.struts.xwork/xwork-core
ParameterInjector<?>[] constructParameterInjector(
Inject inject, ContainerImpl container, Constructor<T> constructor ) throws MissingDependencyException {
return constructor.getParameterTypes().length == 0
? null // default constructor.
: container.getParametersInjectors(
constructor,
constructor.getParameterAnnotations(),
constructor.getParameterTypes(),
inject.value()
);
}
代码示例来源: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
@Inject
public void setXWorkConverter(final XWorkConverter converter) {
this.converter = converter;
}
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject
public DefaultObjectTypeDeterminer(@Inject XWorkConverter conv, @Inject ReflectionProvider prov) {
this.reflectionProvider = prov;
this.xworkConverter = conv;
}
代码示例来源: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-json-plugin
@Inject(required=false,value="struts.json.dateformat")
public void setDefaultDateFormat(String defaultDateFormat) {
this.defaultDateFormat = defaultDateFormat;
}
}
代码示例来源:origin: org.apache.struts/struts2-convention-plugin
/**
* @param packageLocatorsBasePackage (Optional) If set, only packages that start with this
* name will be scanned for actions.
*/
@Inject(value = ConventionConstants.CONVENTION_PACKAGE_LOCATORS_BASE_PACKAGE, required = false)
public void setPackageLocatorsBase(String packageLocatorsBasePackage) {
this.packageLocatorsBasePackage = packageLocatorsBasePackage;
}
代码示例来源:origin: org.apache.struts/struts2-rest-plugin
@Inject(StrutsConstants.STRUTS_I18N_ENCODING)
public void setDefaultEncoding(String val) {
this.defaultEncoding = val;
}
}
代码示例来源:origin: org.apache.struts/struts2-rest-plugin
@Inject(StrutsConstants.STRUTS_I18N_ENCODING)
public void setDefaultEncoding(String val) {
this.defaultEncoding = val;
}
}
代码示例来源:origin: com.atlassian/webwork-compat
/**
* Modify ActionMapper instance.
* @param mapper New instance
*/
@Inject
public static void setActionMapper(ActionMapper mapper) {
actionMapper = mapper;
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject(value="objectFactory.classloader", required=false)
public void setClassLoader(ClassLoader cl) {
this.ccl = cl;
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject
public void setActionFactory(ActionFactory actionFactory) {
this.actionFactory = actionFactory;
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject
public void setConverterFactory(ConverterFactory converterFactory) {
this.converterFactory = converterFactory;
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject
public void setValidatorFileParser(ValidatorFileParser parser) {
this.validatorFileParser = parser;
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject
public void setActionValidatorManager(ActionValidatorManager mgr) {
this.actionValidatorManager = mgr;
}
代码示例来源:origin: org.apache.struts.xwork/xwork-core
@Inject
public void setReflectionProvider(ReflectionProvider reflectionProvider) {
this.reflectionProvider = reflectionProvider;
}
内容来源于网络,如有侵权,请联系作者删除!