本文整理汇总了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;
}
示例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();
}
示例3: countSingleton
@Bean
@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON)
public Integer countSingleton() {
return new Integer(0);
}
示例4: getTaskanaEngine
@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public TaskanaEngine getTaskanaEngine() throws SQLException {
return getTaskanaEngineConfiguration().buildTaskanaEngine();
}
示例5: getTaskanaEngineConfiguration
@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public TaskanaEngineConfiguration getTaskanaEngineConfiguration() throws SQLException {
TaskanaEngineConfiguration taskanaEngineConfiguration = new TaskanaEngineConfiguration(null, true);
return taskanaEngineConfiguration;
}
示例6: containerCustomizer
@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public EmbeddedServletContainerCustomizer containerCustomizer() {
return new CustomizationBean();
}
示例7: enginePredictor
@Bean(initMethod = "init", destroyMethod = "cleanup")
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public EnginePredictor enginePredictor() {
return new EnginePredictor();
}
示例8: placeholderConfigurer
@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
}