本文整理了Java中org.springframework.context.ApplicationContext.containsLocalBean()
方法的一些代码示例,展示了ApplicationContext.containsLocalBean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ApplicationContext.containsLocalBean()
方法的具体详情如下:
包路径:org.springframework.context.ApplicationContext
类名称:ApplicationContext
方法名:containsLocalBean
暂无
代码示例来源:origin: spring-projects/spring-framework
if (context.containsLocalBean(THEME_SOURCE_BEAN_NAME)) {
ThemeSource themeSource = context.getBean(THEME_SOURCE_BEAN_NAME, ThemeSource.class);
代码示例来源:origin: org.springframework/spring-context
if (context.containsLocalBean(THEME_SOURCE_BEAN_NAME)) {
ThemeSource themeSource = context.getBean(THEME_SOURCE_BEAN_NAME, ThemeSource.class);
代码示例来源:origin: org.springframework.webflow/spring-webflow
public FlowDefinitionLocator getFlowDefinitionLocator() {
if (localFlowContext.containsLocalBean("flowRegistry")) {
return localFlowContext.getBean("flowRegistry", FlowDefinitionLocator.class);
} else {
return parent.getFlowDefinitionLocator();
}
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
public Validator getValidator() {
if (localFlowContext.containsLocalBean("validator")) {
return localFlowContext.getBean("validator", Validator.class);
} else {
return parent.getValidator();
}
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
public ExpressionParser getExpressionParser() {
if (localFlowContext.containsLocalBean("expressionParser")) {
return localFlowContext.getBean("expressionParser", ExpressionParser.class);
} else {
return parent.getExpressionParser();
}
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
public FlowArtifactFactory getFlowArtifactFactory() {
if (localFlowContext.containsLocalBean("flowArtifactFactory")) {
return localFlowContext.getBean("flowArtifactFactory", FlowArtifactFactory.class);
} else {
return parent.getFlowArtifactFactory();
}
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
public ConversionService getConversionService() {
if (localFlowContext.containsLocalBean("conversionService")) {
return localFlowContext.getBean("conversionService", ConversionService.class);
} else {
return parent.getConversionService();
}
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
public ViewFactoryCreator getViewFactoryCreator() {
if (localFlowContext.containsLocalBean("viewFactoryCreator")) {
return localFlowContext.getBean("viewFactoryCreator", ViewFactoryCreator.class);
} else {
return parent.getViewFactoryCreator();
}
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
public ValidationHintResolver getValidationHintResolver() {
if (localFlowContext.containsLocalBean("validationHintResolver")) {
return localFlowContext.getBean("validationHintResolver", ValidationHintResolver.class);
} else {
return parent.getValidationHintResolver();
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-common
/**
* @param arg0
* @return
* @see org.springframework.beans.factory.HierarchicalBeanFactory#containsLocalBean(java.lang.String)
*/
public boolean containsLocalBean(String arg0) {
return target.containsLocalBean(arg0);
}
代码示例来源:origin: spring-projects/spring-webflow
public ExpressionParser getExpressionParser() {
if (localFlowContext.containsLocalBean("expressionParser")) {
return localFlowContext.getBean("expressionParser", ExpressionParser.class);
} else {
return parent.getExpressionParser();
}
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
public ExpressionParser getExpressionParser() {
if (localFlowContext.containsLocalBean("expressionParser")) {
return (ExpressionParser) localFlowContext.getBean("expressionParser", ExpressionParser.class);
} else {
return parent.getExpressionParser();
}
}
代码示例来源:origin: apache/archiva
@Override
public boolean containsLocalBean( String s )
{
return applicationContext.containsLocalBean( s );
}
代码示例来源:origin: spring-projects/spring-webflow
public Validator getValidator() {
if (localFlowContext.containsLocalBean("validator")) {
return localFlowContext.getBean("validator", Validator.class);
} else {
return parent.getValidator();
}
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
public FlowDefinitionLocator getFlowDefinitionLocator() {
if (localFlowContext.containsLocalBean("flowRegistry")) {
return (FlowDefinitionLocator) localFlowContext.getBean("flowRegistry", FlowDefinitionLocator.class);
} else {
return parent.getFlowDefinitionLocator();
}
}
代码示例来源:origin: spring-projects/spring-webflow
public FlowArtifactFactory getFlowArtifactFactory() {
if (localFlowContext.containsLocalBean("flowArtifactFactory")) {
return localFlowContext.getBean("flowArtifactFactory", FlowArtifactFactory.class);
} else {
return parent.getFlowArtifactFactory();
}
}
代码示例来源:origin: spring-projects/spring-webflow
public ViewFactoryCreator getViewFactoryCreator() {
if (localFlowContext.containsLocalBean("viewFactoryCreator")) {
return localFlowContext.getBean("viewFactoryCreator", ViewFactoryCreator.class);
} else {
return parent.getViewFactoryCreator();
}
}
代码示例来源:origin: spring-projects/spring-webflow
public ValidationHintResolver getValidationHintResolver() {
if (localFlowContext.containsLocalBean("validationHintResolver")) {
return localFlowContext.getBean("validationHintResolver", ValidationHintResolver.class);
} else {
return parent.getValidationHintResolver();
}
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
public FlowArtifactFactory getFlowArtifactFactory() {
if (localFlowContext.containsLocalBean("flowArtifactFactory")) {
return (FlowArtifactFactory) localFlowContext.getBean("flowArtifactFactory", FlowArtifactFactory.class);
} else {
return parent.getFlowArtifactFactory();
}
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
public ViewFactoryCreator getViewFactoryCreator() {
if (localFlowContext.containsLocalBean("viewFactoryCreator")) {
return (ViewFactoryCreator) localFlowContext.getBean("viewFactoryCreator", ViewFactoryCreator.class);
} else {
return parent.getViewFactoryCreator();
}
}
内容来源于网络,如有侵权,请联系作者删除!