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 .
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
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 5 votes |
@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
Source File: DefaultValidatorConfiguration.java From cm_ext with Apache License 2.0 | 5 votes |
@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
Source File: DefaultValidatorConfiguration.java From cm_ext with Apache License 2.0 | 5 votes |
@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
Source File: DefaultValidatorConfiguration.java From cm_ext with Apache License 2.0 | 5 votes |
@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
Source File: DefaultValidatorConfiguration.java From cm_ext with Apache License 2.0 | 5 votes |
@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
Source File: MvcControllerContext.java From OpERP with MIT License | 4 votes |
@Bean @Scope(value = BeanDefinition.SCOPE_PROTOTYPE) public ContactInfoPaneController contactInfoPaneController() { return new ContactInfoPaneControllerImpl(); }
Example 7
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public NugetSolutionDetector nugetSolutionBomTool(final DetectorEnvironment environment) { return new NugetSolutionDetector(environment, detectFileFinder, nugetInspectorManager(), nugetInspectorExtractor(), directoryManager); }
Example 8
Source File: MyBeanConfig.java From javabase with Apache License 2.0 | 4 votes |
@Bean(initMethod = "myInit", destroyMethod = "myDestory") @Scope(value = BeanDefinition.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.TARGET_CLASS) public Person person1(){ return new Person(); }
Example 9
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public NugetProjectDetector nugetProjectBomTool(final DetectorEnvironment environment) { return new NugetProjectDetector(environment, directoryManager, detectFileFinder, nugetInspectorManager(), nugetInspectorExtractor()); }
Example 10
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public PodlockDetector podLockBomTool(final DetectorEnvironment environment) { return new PodlockDetector(environment, detectFileFinder, podlockExtractor()); }
Example 11
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public NpmCliDetector npmCliBomTool(final DetectorEnvironment environment) { return new NpmCliDetector(environment, detectFileFinder, npmExecutableFinder(), npmCliExtractor()); }
Example 12
Source File: MyBeanConfig.java From javabase with Apache License 2.0 | 4 votes |
@Bean(initMethod = "myInit", destroyMethod = "myDestory") @Scope(value = BeanDefinition.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.TARGET_CLASS) public Person person2(){ return new Person(); }
Example 13
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public MavenPomDetector mavenPomBomTool(final DetectorEnvironment environment) { return new MavenPomDetector(environment, detectFileFinder, mavenExecutableFinder(), mavenCliExtractor()); }
Example 14
Source File: MvcModelContext.java From OpERP with MIT License | 4 votes |
@Bean @Scope(value = BeanDefinition.SCOPE_PROTOTYPE) public ContactInfoPaneModel contactInfoPaneModel() { return new ContactInfoPaneModelImpl(); }
Example 15
Source File: ProcessStepsConfiguration.java From multiapps-controller with Apache License 2.0 | 4 votes |
@Bean("processMtaArchiveStep") @Scope(BeanDefinition.SCOPE_PROTOTYPE) public ProcessMtaArchiveStep buildProcessMtaArchiveStep() { return new ProcessMtaArchiveStep(); }
Example 16
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public RebarDetector rebarBomTool(final DetectorEnvironment environment) { return new RebarDetector(environment, detectFileFinder, cacheableExecutableFinder, rebarExtractor()); }
Example 17
Source File: SpringBeanScopeTest.java From java_in_examples with Apache License 2.0 | 4 votes |
@Bean @Scope(BeanDefinition.SCOPE_PROTOTYPE) public PrototypeClass1 getPrototypeClass1(){ return new PrototypeClass1(); }
Example 18
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public CpanCliDetector cpanCliBomTool(final DetectorEnvironment environment) { return new CpanCliDetector(environment, detectFileFinder, cacheableExecutableFinder, cpanCliExtractor()); }
Example 19
Source File: DefaultValidatorConfiguration.java From cm_ext with Apache License 2.0 | 4 votes |
@Bean @Scope(BeanDefinition.SCOPE_PROTOTYPE) public ExpressionValidator expressionValidator() { return new ExpressionValidatorImpl(); }
Example 20
Source File: DetectorBeanConfiguration.java From hub-detect with Apache License 2.0 | 4 votes |
@Bean @Scope(scopeName = BeanDefinition.SCOPE_PROTOTYPE) public BazelDetector bazelDetector(final DetectorEnvironment environment) { return new BazelDetector(environment, bazelExtractor(), bazelExecutableFinder(), detectConfiguration); }