Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You should use a <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#beans-factory-class-static-factory-method" rel="nofollow">spring factory</a>. </p> <p>There are different flavors of factories</p> <ul> <li><a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#beans-factory-class-static-factory-method" rel="nofollow">static methods</a></li> <li><a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#beans-factory-class-instance-factory-method" rel="nofollow">instance methods</a></li> <li><a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#beans-java-basic-concepts" rel="nofollow">@Bean</a></li> </ul> <p>How it works:</p> <p>You USE the bean based on its super class or interface like any other bean. But the factory decide what exact subclass will be created. So when Spring need to inject one of the beans in an other bean, it will consult the factory for the concrete bean (or depending on the scope (Singleton) use the one that is already created). So the factory can decide by some logic which concrete subclass must be created.</p> <hr> <p>My mobile phone can not writ comments on stackoverflow gui, so I need to extend the answer to answer the comment: sorry I can not give an example because I am now (since 5h) in holiday for the next weeks. I have no PC and my phone can even not add an comment. So you need to ask an new question about the details. </p> <hr> <p>i do not understand york lasr comment. But the three-dimensional differentialgleichungen types in my answer are links to the recerence documentatin containinv an example for da each. BTW. i am will not havel internet for the next days, you should ask a new question if the reference is not enougth.</p> <p>-</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload