Java Code Examples for org.springframework.beans.factory.config.BeanDefinition#SCOPE_PROTOTYPE

The following examples show how to use org.springframework.beans.factory.config.BeanDefinition#SCOPE_PROTOTYPE . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public PipInspectorDetector pipInspectorBomTool(final DetectorEnvironment environment) {
    //final String requirementsFile = detectConfiguration.getProperty(DetectProperty.DETECT_PIP_REQUIREMENTS_PATH, PropertyAuthority.None);
    return new PipInspectorDetector(environment, detectConfiguration.getProperty(DetectProperty.DETECT_PIP_REQUIREMENTS_PATH, PropertyAuthority.None), detectFileFinder, pythonExecutableFinder(), pipInspectorManager(),
        pipInspectorExtractor());
}
 
Example 2
@SuppressWarnings("unchecked")
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public ExistingServiceTypeValidator existingServiceTypeValidator() {
  Set<String> serviceTypes =
      (Set<String>)ctx.getBean(BUILTIN_SERVICE_TYPES_BEAN_NAME);
  return new ExistingServiceTypeValidatorImpl(serviceTypes);
}
 
Example 3
@SuppressWarnings("unchecked")
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public UniqueRoleTypeValidator uniqueRoleTypeValidator() {
  Set<String> roleTypes = (Set<String>)ctx.getBean(BUILTIN_ROLE_TYPES_BEAN_NAME);
  return new UniqueRoleTypeValidatorImpl(roleTypes);
}
 
Example 4
@SuppressWarnings("unchecked")
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public UniqueServiceTypeValidator uniqueServiceTypeValidator() {
  Set<String> serviceTypes = (Set<String>)ctx.getBean(BUILTIN_SERVICE_TYPES_BEAN_NAME);
  return new UniqueServiceTypeValidatorImpl(serviceTypes);
}
 
Example 5
@SuppressWarnings("unchecked")
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public ValidServiceDependencyValidator validServiceDependencyValidator() {
  Set<String> validServiceTypes =
      (Set<String>)ctx.getBean(BUILTIN_SERVICE_TYPES_BEAN_NAME);
  return new ValidServiceDependencyValidatorImpl(validServiceTypes);
}
 
Example 6
@Bean("processMtaArchiveStep")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public ProcessMtaArchiveStep buildProcessMtaArchiveStep() {
    return new ProcessMtaArchiveStep();
}
 
Example 7
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public BazelDetector bazelDetector(final DetectorEnvironment environment) {
    return new BazelDetector(environment, bazelExtractor(), bazelExecutableFinder(), detectConfiguration);
}
 
Example 8
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public ExpressionValidator expressionValidator() {
  return new ExpressionValidatorImpl();
}
 
Example 9
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public CpanCliDetector cpanCliBomTool(final DetectorEnvironment environment) {
    return new CpanCliDetector(environment, detectFileFinder, cacheableExecutableFinder, cpanCliExtractor());
}
 
Example 10
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public PrototypeClass1 getPrototypeClass1(){
    return new PrototypeClass1();
}
 
Example 11
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public RebarDetector rebarBomTool(final DetectorEnvironment environment) {
    return new RebarDetector(environment, detectFileFinder, cacheableExecutableFinder, rebarExtractor());
}
 
Example 12
Source Project: OpERP   File: MvcControllerContext.java    License: MIT License 4 votes vote down vote up
@Bean
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE)
public ContactInfoPaneController contactInfoPaneController() {
	return new ContactInfoPaneControllerImpl();
}
 
Example 13
Source Project: OpERP   File: MvcModelContext.java    License: MIT License 4 votes vote down vote up
@Bean
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE)
public ContactInfoPaneModel contactInfoPaneModel() {
	return new ContactInfoPaneModelImpl();
}
 
Example 14
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public MavenPomDetector mavenPomBomTool(final DetectorEnvironment environment) {
    return new MavenPomDetector(environment, detectFileFinder, mavenExecutableFinder(), mavenCliExtractor());
}
 
Example 15
Source Project: javabase   File: MyBeanConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean(initMethod = "myInit", destroyMethod = "myDestory")
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.TARGET_CLASS)
public Person person2(){
 return new Person();
}
 
Example 16
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public NpmCliDetector npmCliBomTool(final DetectorEnvironment environment) {
    return new NpmCliDetector(environment, detectFileFinder, npmExecutableFinder(), npmCliExtractor());
}
 
Example 17
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public PodlockDetector podLockBomTool(final DetectorEnvironment environment) {
    return new PodlockDetector(environment, detectFileFinder, podlockExtractor());
}
 
Example 18
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public NugetProjectDetector nugetProjectBomTool(final DetectorEnvironment environment) {
    return new NugetProjectDetector(environment, directoryManager, detectFileFinder, nugetInspectorManager(), nugetInspectorExtractor());
}
 
Example 19
Source Project: javabase   File: MyBeanConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean(initMethod = "myInit", destroyMethod = "myDestory")
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.TARGET_CLASS)
public Person person1(){
 return new Person();
}
 
Example 20
@Bean
@Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE)
public NugetSolutionDetector nugetSolutionBomTool(final DetectorEnvironment environment) {
    return new NugetSolutionDetector(environment, detectFileFinder, nugetInspectorManager(), nugetInspectorExtractor(), directoryManager);
}