Identify the correct statement about the following pointcut expression: execution(@javax.annotation.security.RolesAllowed * rewards.restaurant.*.*(..)) (Select one)
A. The return type of the target method is RolesAllowed
B. All method parameters should be annotated with @RolesAllowed
C. The target method may have one argument
D. All of the above
Identify the correct statement(s) about the following pointcut expression: execution(* rewards..restaurant.*.*(*)) (select one or several answers)
A. There may be several directories between 'rewards' and 'restaurant'
B. There is no restriction on the class name
C. The target method may have several arguments
D. The return type must not be "void"
Identify the correct statement(s) about the following pointcut expression: execution(* rewards.restaurant.*Service.find(..))
A. The target's type should end with "Service"
B. The target method name could be "findRestaurantById"
C. The target method should have one argument only
D. The target method may have several arguments
Which of the following statements is NOT true concerning the BeanPostProcessor Extension point? (Select one)
A. BeanPostProcessors are called during the init phase
B. BeanPostProcessors are called after the dependencies have been injected
C. BeanPostProcessors are called before the BeanFactoryPostProcessors have been called
D. Custom BeanPostProcessors can be implemented
Identify the correct statement about the following pointcut expression. Assume that these 2 classes do not
inherit from one another:
Execution (* rewards.service.MyClass.*(..)) andand execution(* rewards.service2.MyOtherClass.*(..))
(Select one)
A. Executions of all public method calls in MyClass and MyOtherClass will be selected by this pointcut
B. Public methods in MyClass and MyOtherClass which take zero arguments will not be selected by this pointcut
C. Public methods in MyClass and MyOtherClass which take more than one argument will not be selected by this pointcut
D. This pointcut will never select any join points
ClientService service = applicationContext.getBean(ClientService.class)
Which statement is true with regards to the above example? (select one)
A. It returns the bean called "ClientService"
B. It returns a bean of the type ClientService (regardless of its id or name)
C. This syntax is not valid because the bean id must be specified as a method param
D. This syntax is not valid because the result of the getBean method should be explicitely cast into ClientService
@Configuration
public class AppConfig {
@Bean
public ClientService clientService() {
ClientServiceImpl clientService = new ClientServiceImpl();
clientService.addClientDao(new ClientDao());
return clientService;
}
In the example above, which statement is NOT true with regards to Spring Java configuration? (select one)
A. The declared bean is a singleton by default
B. This bean might be wrapped by a proxy
C. This bean cannot use a method starting with "add" to inject a dependency
D. The bean is of type ClientService
public class AppConfig {
public ClientService clientService() {
return new ClientServiceImpl();
}
}
The Spring Java configuration above is NOT correct. Why? (select one)
A. The class should be annotated with @Configuration
B. The method should be annotated with @Bean
C. Both (a) and (b)
D. Neither (a) or (b)
import com.springsource.service.*;
...
@Configuration
public class AppConfig {
@Bean
public ClientService clientService() {
return new ClientServiceImpl();
}
}
What is the id of the declared bean? (Select one)
A. clientService (starting with lower-case "c")
B. ClientService (starting with capital "C")
C. com.springsource.service.ClientService
D. com.springsource.service.ClientServiceImpl
Which of the following statements about Spring's JUnit integration testing support is true? (select one)
A. A new ApplicationContext is initialized and created for each test method
B. To obtain references to the Spring bean(s) you want to test, you need to call getBean() on the ApplicationContext provided
C. You can indicate which XML configuration files the test class will use to create the ApplicationContext
D. All of the above
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only SpringSource exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your CORESPRINGV3.2 exam preparations and SpringSource certification application, do not hesitate to visit our Vcedump.com to find your solutions here.