02-22-2007 08:27 AM
modified public-services-context.xml fragment:
<!– Node Service –>
<bean id="NodeService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<list>
<value>org.alfresco.service.ServiceDescriptor</value>
<value>org.alfresco.service.cmr.repository.NodeService</value>
</list>
</property>
<property name="target">
<ref bean="nodeService"/>
</property>
<property name="interceptorNames">
<list>
<!– quosis node service interceptor –>
<idref local="NodeInterceptor" />
<idref local="NodeService_transaction"/>
<idref local="AuditMethodInterceptor"/>
<idref local="exceptionTranslator"/>
<idref bean="NodeService_security"/>
<idref local="NodeService_descriptor"/>
</list>
</property>
</bean>
And NodeInterceptor.java fragment:
public class NodeInterceptor implements MethodInterceptor
{
@SuppressWarnings("unchecked")
public Object invoke(MethodInvocation invocation) throws Throwable
{
Object o = invocation.proceed();
System.out.println( "ALFRESCO NODESERVICE: "+invocation );
return o;
}
}
03-07-2007 07:57 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.