org.alfresco.repo.audit
Class PublicServiceIdentifierImpl

java.lang.Object
  extended by org.alfresco.repo.audit.PublicServiceIdentifierImpl
All Implemented Interfaces:
PublicServiceIdentifier, org.springframework.beans.factory.BeanFactoryAware

public class PublicServiceIdentifierImpl
extends java.lang.Object
implements PublicServiceIdentifier, org.springframework.beans.factory.BeanFactoryAware

Identify public services by method invocation. Look ups are cached on a thread local as they are quite expensive. All public service names end with "Service" and start with capital letter. This pattern is used to filter bean names. TODO: Look at pulling out all the mappings at start up.


Constructor Summary
PublicServiceIdentifierImpl()
           
 
Method Summary
 java.lang.String getPublicServiceName(org.aopalliance.intercept.MethodInvocation mi)
          Get the name of the public service for the method invocation.
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicServiceIdentifierImpl

public PublicServiceIdentifierImpl()
Method Detail

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

getPublicServiceName

public java.lang.String getPublicServiceName(org.aopalliance.intercept.MethodInvocation mi)
Description copied from interface: PublicServiceIdentifier
Get the name of the public service for the method invocation.

Specified by:
getPublicServiceName in interface PublicServiceIdentifier
Parameters:
mi - the method invocation
Returns:
Returns the name of the public service or null if it is not recognized as a public service


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.