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 java.lang.Object implements BeanIdentifier, org.springframework.beans.factory.BeanFactoryAware
Lookup the name of a bean that is being audited byAuditMethodInterceptor.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 Constructor Description BeanIdentifierImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBeanName(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)
-
-
-
Method Detail
-
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
public java.lang.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:
getBeanNamein interfaceBeanIdentifier- Parameters:
mi- the method invocation- Returns:
- Returns the name of the bean or null if it is not recognized
-
-