本文整理匯總了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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例13: cassandraConverter
@Bean
@Lazy
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public CassandraConverter cassandraConverter(Cluster cluster, String keyspace) throws ClassNotFoundException {
return new MappingCassandraConverter(cassandraMapping(cluster, keyspace));
}
示例14: aboutBox
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public Stage aboutBox() {
return new AboutBox(getMainView().getPrimaryStage(), localeService, uiProperties);
}
示例15: filterTextField
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public FilterTextField filterTextField() {
return new FilterTextField(localeService);
}