Class BeanIdentifierImpl

java.lang.Object
org.alfresco.repo.audit.BeanIdentifierImpl
All Implemented Interfaces:
BeanIdentifier, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware

public class BeanIdentifierImpl extends Object implements BeanIdentifier, org.springframework.beans.factory.BeanFactoryAware
Lookup the name of a bean that is being audited by AuditMethodInterceptor.

Originally used to look up public services annotated with @PublicService, but has now been relaxed to be any bean that uses a proxy. For the method to be audited it still needs to be annotated with @Auditable.

Author:
Andy Hind, David Ward, Alan Davis
  • Constructor Details

    • BeanIdentifierImpl

      public BeanIdentifierImpl()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • getBeanName

      public String getBeanName(org.aopalliance.intercept.MethodInvocation mi)
      Get the name of the bean (normally a service) for the method invocation. Cache service name look up.
      Specified by:
      getBeanName in interface BeanIdentifier
      Parameters:
      mi - the method invocation
      Returns:
      Returns the name of the bean or null if it is not recognized