本文整理匯總了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();
}