Free CoreSpringV3.2 Exam Braindumps (page: 12)

Page 11 of 25

Identify the correct statement(s) regarding the <aop:aspectj-autoproxy /> tag (Select one or multiple answers)

  1. Can only be used with AspectJ (as opposed to Spring AOP)
  2. Enables the detection of @Aspect annotated classes
  3. Allows to define a list of names to include so Spring is not going to scan all the beans at startup

Answer(s): B,C



Consider the following bean definition

<bean id="clientService" class="com.springsource.service.ClientServiceImpl" />

Using Spring AOP, you have declared a Pointcut targeting all methods inside the clientService bean. ClientServiceImpl implements 3 different interfaces.

Which interfaces will the proxy class implement? (Select one)

  1. All interfaces
  2. The proxy class does not implement any interface
  3. A Spring bean should never implement any interface

Answer(s): A



Which statement concerning Aspect Oriented Programming (AOP) is true (Select one)

  1. AOP modularizes cross-cutting concerns
  2. Spring AOP implements aspects using the Proxy pattern
  3. Three of the advice types are "before", "after" and "around"
  4. All of the above

Answer(s): D



Which of the following statements is NOT true about Spring AOP? (Select one)

  1. "private" methods cannot be advised, but all other method visibilities can be
  2. Proxy classes are created at startup time by default
  3. The "After Throwing" advice type executes after the join point, but executes only if the advised method threw an exception
  4. The "After" advice type is invoked regardless of whether a method successfully returned or an exception is thrown

Answer(s): A






Post your Comments and Discuss SpringSource CoreSpringV3.2 exam with other Community members:

CoreSpringV3.2 Exam Discussions & Posts