當前位置: 首頁>>代碼示例>>Java>>正文


Java BeanDefinition.SCOPE_PROTOTYPE屬性代碼示例

本文整理匯總了Java中org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE屬性的典型用法代碼示例。如果您正苦於以下問題:Java BeanDefinition.SCOPE_PROTOTYPE屬性的具體用法?Java BeanDefinition.SCOPE_PROTOTYPE怎麽用?Java BeanDefinition.SCOPE_PROTOTYPE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.springframework.beans.factory.config.BeanDefinition的用法示例。


在下文中一共展示了BeanDefinition.SCOPE_PROTOTYPE屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: messagePublisher

@SuppressWarnings("rawtypes")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
@Bean
public IMessagePublisher messagePublisher(final String className) {

	return createObject(className, IMessagePublisher.class);
}
 
開發者ID:dcsolutions,項目名稱:kalinka,代碼行數:7,代碼來源:ContextConfiguration.java

示例2: notInListValidator

/**
 * Configure the NotInList Validator
 *
 * @return NotInList Validator
 */
@Bean(name = "not-in-list")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public NotInListValidator notInListValidator() {
    NotInListValidator validator = new NotInListValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例3: cassandraMapping

@Bean
@Lazy
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public CassandraMappingContext cassandraMapping(Cluster cluster, String keyspace) throws ClassNotFoundException {
    BasicCassandraMappingContext mappingContext = new BasicCassandraMappingContext();
    mappingContext.setBeanClassLoader(classLoader);
    mappingContext.setInitialEntitySet(CassandraEntityClassScanner.scan(getEntityBasePackages()));
    CustomConversions customConversions = customConversions();
    mappingContext.setCustomConversions(customConversions);
    mappingContext.setSimpleTypeHolder(customConversions.getSimpleTypeHolder());
    mappingContext.setUserTypeResolver(new SimpleUserTypeResolver(cluster, keyspace));
    return mappingContext;
}
 
開發者ID:Kindrat,項目名稱:cassandra-client,代碼行數:13,代碼來源:CassandraConfiguration.java

示例4: maxValueValidator

/**
 * Configure the MaxValue Validator
 *
 * @return MaxValue Validator
 */
@Bean(name = "max-value")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public MaxValueValidator maxValueValidator() {
    MaxValueValidator validator = new MaxValueValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例5: primaryKeyValidator

/**
 * Configure the PrimaryKey Validator
 *
 * @return PrimaryKey Validator
 */
@Bean(name = "primary-key")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public PrimaryKeyValidator primaryKeyValidator() {
    PrimaryKeyValidator validator = new PrimaryKeyValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例6: patternValidator

/**
 * Configure the Pattern Validator
 *
 * @return Pattern Validator
 */
@Bean(name = "pattern")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public PatternValidator patternValidator() {
    PatternValidator validator = new PatternValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例7: helpMenu

@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public Menu helpMenu() {
    Menu file = new Menu(localeService.getMessage("ui.menu.help"));
    file.setMnemonicParsing(false);

    MenuItem about = new MenuItem(localeService.getMessage("ui.menu.help.about"));
    about.setMnemonicParsing(false);
    about.setOnAction(event -> aboutBox());

    file.getItems().add(about);
    return file;
}
 
開發者ID:Kindrat,項目名稱:cassandra-client,代碼行數:13,代碼來源:CassandraClientUIConfiguration.java

示例8: inListValidator

/**
 * Configure the InList Validator
 *
 * @return InList Validator
 */
@Bean(name = "in-list")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public InListValidator inListValidator() {
    InListValidator validator = new InListValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例9: commentValidator

/**
 * Configure the Comment Validator
 *
 * @return Comment Validator
 */
@Bean(name = "comment")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public CommentValidator commentValidator() {
    CommentValidator validator = new CommentValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例10: candidateKeyValidator

/**
 * Configure the CandidateKey Validator
 *
 * @return CandidateKey Validator
 */
@Bean(name = "candidate-key")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public CandidateKeyValidator candidateKeyValidator() {
    CandidateKeyValidator validator = new CandidateKeyValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例11: mandatoryValidator

/**
 * Configure the Mandatory Validator
 *
 * @return Mandatory Validator
 */
@Bean(name = "mandatory")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public MandatoryValidator mandatoryValidator() {
    MandatoryValidator validator = new MandatoryValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例12: maxLengthValidator

/**
 * Configure the MaxLength Validator
 *
 * @return MaxLength Validator
 */
@Bean(name = "max-length")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public MaxLengthValidator maxLengthValidator() {
    MaxLengthValidator validator = new MaxLengthValidator();
    validator.setRuleEvaluator(ruleHelper());
    return validator;
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:12,代碼來源:JaffaRulesConfig.java

示例13: cassandraConverter

@Bean
@Lazy
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public CassandraConverter cassandraConverter(Cluster cluster, String keyspace) throws ClassNotFoundException {
    return new MappingCassandraConverter(cassandraMapping(cluster, keyspace));
}
 
開發者ID:Kindrat,項目名稱:cassandra-client,代碼行數:6,代碼來源:CassandraConfiguration.java

示例14: aboutBox

@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public Stage aboutBox() {
    return new AboutBox(getMainView().getPrimaryStage(), localeService, uiProperties);
}
 
開發者ID:Kindrat,項目名稱:cassandra-client,代碼行數:5,代碼來源:CassandraClientUIConfiguration.java

示例15: filterTextField

@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public FilterTextField filterTextField() {
    return new FilterTextField(localeService);
}
 
開發者ID:Kindrat,項目名稱:cassandra-client,代碼行數:5,代碼來源:CassandraClientUIConfiguration.java


注:本文中的org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。