Example usage for org.springframework.beans.factory.config ConfigurableBeanFactory SCOPE_PROTOTYPE

List of usage examples for org.springframework.beans.factory.config ConfigurableBeanFactory SCOPE_PROTOTYPE

Introduction

In this page you can find the example usage for org.springframework.beans.factory.config ConfigurableBeanFactory SCOPE_PROTOTYPE.

Prototype

String SCOPE_PROTOTYPE

To view the source code for org.springframework.beans.factory.config ConfigurableBeanFactory SCOPE_PROTOTYPE.

Click Source Link

Document

Scope identifier for the standard prototype scope: "prototype".

Usage

From source file:io.gravitee.gateway.standalone.vertx.VertxConfiguration.java

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public VertxHttpServerFactory vertxHttpServerFactory() {
    return new VertxHttpServerFactory();
}

From source file:io.gravitee.gateway.http.vertx.spring.VertxHttpClientConfiguration.java

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public HttpClient httpClient(Endpoint endpoint) {
    return new VertxHttpClient(endpoint);
}

From source file:de.neusta.examples.passwordvalidator.AppConfig.java

@Bean(name = { "passwordParameter" })
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public PasswordParameter passwordParameter() {
    return new PasswordParameter();
}

From source file:io.meles.spring.SimpleConfig.java

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public String prototypeString() {
    return "this is a prototype string";
}

From source file:io.gravitee.gateway.standalone.vertx.VertxConfiguration.java

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public GraviteeVerticle graviteeVerticle() {
    return new GraviteeVerticle();
}

From source file:org.pdfsam.ui.banner.MenuConfig.java

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public MenuButton menuButton() {
    return new MenuButton(menu());
}

From source file:com.uimirror.location.conf.BeanOfBackGroundProcessor.java

@Bean(name = LocationStoreBackGroundProcessor.NAME)
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public BackgroundProcessor<DefaultLocation, DefaultLocation> locationStoreBackGroundProcessor() {
    return new LocationStoreBackGroundProcessor();
}

From source file:io.meles.spring.SimpleConfig.java

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public String prototypeStringWithArg(Integer integer) {
    return String.valueOf(integer);
}

From source file:io.appium.java_client.events.DefaultBeanConfiguration.java

@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Bean(name = LISTENABLE_OBJECT)/*from ww  w  .  j a v a 2 s . c  o  m*/
public <T> T init(T t, WebDriver driver, List<Listener> listeners, AbstractApplicationContext context) {
    this.driver = driver;
    this.listeners.addAll(listeners);
    this.context = context;
    return t;
}

From source file:org.mwolff.generator.structures.GeneratorAppConfig.java

@Bean(name = { "readConfiguration" })
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public ReadConfiguration<org.mwolff.generator.structures.Configuration> readConfiguration() {
    ReadConfiguration<org.mwolff.generator.structures.Configuration> configuration = new ReadConfiguration<org.mwolff.generator.structures.Configuration>();
    return configuration;
}