If you annotate one of your classes with @Component, which of the following should you do to have Spring automatically detect your class and load it as a bean? (Select one or several answers)

If you annotate one of your classes with @Component, which of the following should you do to have Spring automatically detect your class and load it as a bean? (Select one or several answers)A . Ensure that you specify a valid bean name in the @Component annotationB . Ensure that you specify a valid...

In the example above, which statement is NOT true with regards to Spring Java configuration?

In the example above, which statement is NOT true with regards to Spring Java configuration? (select one) @Configuration public class AppConfig { @Bean public ClientService clientService() { ClientServiceImpl clientService = new ClientServiceImpl(); clientService.addClientDao(new ClientDao()); return clientService; }A . The declared bean is a singleton by defaultB . This bean might be wrapped by a...

Which of the following statements about the FactoryBean interface is NOT true? (select one)

Which of the following statements about the FactoryBean interface is NOT true? (select one)A . A FactoryBean can be used to generate Spring beans of any typeB . The Spring configuration <property name="someValue" ref="myFactoryBeanImpl"/> will ALWAYS inject the instance of the FactoryBean implementationC . FactoryBean is a Spring interfaceD . Factory objects used in...

Identify the correct statement about the following pointcut expression. Assume that these 2 classes do not inherit from one another:

Identify the correct statement about the following pointcut expression. Assume that these 2 classes do not inherit from one another: Execution (* rewards.service.MyClass.*(..)) && execution(* rewards.service2.MyOtherClass.*(..)) (Select one)A . Executions of all public method calls in MyClass and MyOtherClass will be selected by this pointcutB . Public methods in MyClass and MyOtherClass which take...

Select which statement is true with respect to constructor injection with Spring (select one)

Select which statement is true with respect to constructor injection with Spring (select one)A . Multiple parameters can be dependency injected into a constructorB . Using XML configuration, the constructor-arg element may be omitted if the constructor requires a single parameterC . One single bean cannot mix constructor injection with setter injectionD . All...