當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。