LoginSignup
1
1

More than 5 years have passed since last update.

Scopeをprototypeに指定する時に使える定数

Posted at
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)

これで「"prototype"」が指定できる。


org.springframework.context.annotation.Scope抜粋
String value() default ConfigurableBeanFactory.SCOPE_SINGLETON;
org.springframework.beans.factory.config.ConfigurableBeanFactory抜粋
public static final String SCOPE_SINGLETON = "singleton";
public static final String SCOPE_PROTOTYPE = "prototype";
org.springframework.context.annotation.Scopeのjavadoc
Scopes provided out of the box in Spring may be referred to using the SCOPE_* constants available in via ConfigurableBeanFactory and WebApplicationContext interfaces. 

javadocに「定数使えるよ」って書いてあった。。。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1