Class DirectoryExceptionsManagementAspect

java.lang.Object
net.andresbustamante.yafoot.users.aop.DirectoryExceptionsManagementAspect

@Component public class DirectoryExceptionsManagementAspect extends Object
Aspect in charge of transforming any exception thrown when contacting the user directory into a DirectoryException.
  • Constructor Details

    • DirectoryExceptionsManagementAspect

      public DirectoryExceptionsManagementAspect()
  • Method Details

    • filterServicesMethods

      public void filterServicesMethods()
      Pointcut for services implementation using the active directory.
    • transformException

      public Object transformException(org.aspectj.lang.ProceedingJoinPoint pjp) throws Throwable
      Transforms any exception thrown into a DirectoryException.
      Parameters:
      pjp - Join point used for the method to intercept
      Returns:
      Service method return
      Throws:
      Throwable - Exception from service method