VMware 2V0-72.22 Exam - Topic 11 Question 67 Discussion
Refer to the exhibit.How can a Spring Bean be created from this LegacySingleton class?
A) Call LegacySingleton.getInstance() from within a @Bean method and return the instance.
B) Return an instance of LegacySingleton using the new keyword from a @Bean method.
C) It is not possible without modifying the LegacySingleton class, the constructor must be public.
D) Modify the LegacySingleton class by adding the @Autowired annotation to the instance variable.
Matilda
6 months agoMerilyn
6 months agoJamal
7 months agoZana
7 months agoMargery
7 months agoKandis
7 months agoLynda
8 months agoDell
8 months agoBrandon
8 months agoHollis
8 months agoLeonor
8 months agoCarman
8 months agoKeneth
8 months agoMitsue
1 year agoFiliberto
1 year agoGenevieve
1 year agoWilda
1 year agoAnthony
1 year agoBecky
1 year agoJoana
1 year agoSelma
1 year agoMargurite
1 year agoMyrtie
1 year agoHelene
1 year agoAnnita
1 year agoSkye
1 year agoAnnamaria
1 year agoSkye
1 year ago