当前位置: 首页>>代码示例>>Java>>正文


Java ConfigurableBeanFactory.SCOPE_SINGLETON属性代码示例

本文整理汇总了Java中org.springframework.beans.factory.config.ConfigurableBeanFactory.SCOPE_SINGLETON属性的典型用法代码示例。如果您正苦于以下问题:Java ConfigurableBeanFactory.SCOPE_SINGLETON属性的具体用法?Java ConfigurableBeanFactory.SCOPE_SINGLETON怎么用?Java ConfigurableBeanFactory.SCOPE_SINGLETON使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.springframework.beans.factory.config.ConfigurableBeanFactory的用法示例。


在下文中一共展示了ConfigurableBeanFactory.SCOPE_SINGLETON属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: verifierContext

@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
@Bean(name = "verifier-context", initMethod = "start", destroyMethod = "stop")
public static CamelContext verifierContext() {
    CamelContext context = new DefaultCamelContext();
    context.setNameStrategy(new ExplicitCamelContextNameStrategy("verifier-context"));
    context.disableJMX();

    return context;
}
 
开发者ID:syndesisio,项目名称:syndesis,代码行数:9,代码来源:Application.java

示例2: twitterVerifier

@Bean("twitter")
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
@Lazy
@ConditionalOnProperty(prefix = "io.syndesis.connector.twitter.verifier", name = "enabled", matchIfMissing = true)
public Verifier twitterVerifier() {
    return new TwitterVerifier();
}
 
开发者ID:syndesisio,项目名称:syndesis,代码行数:7,代码来源:TwitterVerifierAutoConfiguration.java

示例3: countSingleton

@Bean
@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON)
public Integer countSingleton() {
	return new Integer(0);
}
 
开发者ID:howma03,项目名称:sporticus,代码行数:5,代码来源:ServiceMailAbstract.java

示例4: getTaskanaEngine

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public TaskanaEngine getTaskanaEngine() throws SQLException {
    return getTaskanaEngineConfiguration().buildTaskanaEngine();
}
 
开发者ID:Taskana,项目名称:taskana,代码行数:5,代码来源:RestApplication.java

示例5: getTaskanaEngineConfiguration

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public TaskanaEngineConfiguration getTaskanaEngineConfiguration() throws SQLException {
    TaskanaEngineConfiguration taskanaEngineConfiguration = new TaskanaEngineConfiguration(null, true);
    return taskanaEngineConfiguration;
}
 
开发者ID:Taskana,项目名称:taskana,代码行数:6,代码来源:RestApplication.java

示例6: containerCustomizer

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public EmbeddedServletContainerCustomizer containerCustomizer() {
    return new CustomizationBean();
}
 
开发者ID:SeldonIO,项目名称:seldon-core,代码行数:5,代码来源:AppConfig.java

示例7: enginePredictor

@Bean(initMethod = "init", destroyMethod = "cleanup")
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public EnginePredictor enginePredictor() {
    return new EnginePredictor();
}
 
开发者ID:SeldonIO,项目名称:seldon-core,代码行数:5,代码来源:AppConfig.java

示例8: placeholderConfigurer

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
    return new PropertySourcesPlaceholderConfigurer();
}
 
开发者ID:tvajjala,项目名称:interview-preparation,代码行数:5,代码来源:Application.java


注:本文中的org.springframework.beans.factory.config.ConfigurableBeanFactory.SCOPE_SINGLETON属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。