Package org.alfresco.repo.audit
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBeanName(org.aopalliance.intercept.MethodInvocation mi) Get the name of the bean (normally a service) for the method invocation.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
Constructor Details
-
BeanIdentifierImpl
public BeanIdentifierImpl()
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
getBeanName
Get the name of the bean (normally a service) for the method invocation. Cache service name look up.- Specified by:
getBeanNamein interfaceBeanIdentifier- Parameters:
mi- the method invocation- Returns:
- Returns the name of the bean or null if it is not recognized
-