org.alfresco.filesys.repo
Class FilesystemTransactionAdvice

java.lang.Object
  extended by org.alfresco.filesys.repo.FilesystemTransactionAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class FilesystemTransactionAdvice
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

An advice wrapper for an AlfrescoDiskDriver. Wraps the method call with a RetryingTransactionHandler.

Needs to let the checked exceptions that are specified on the JLAN interfaces through. In particular must avoid wrapping JLAN's checked exceptions with an AlfrescoRuntimeException (so must throw IOException etc)


Nested Class Summary
protected static class FilesystemTransactionAdvice.PropagatingException
          A wrapper for checked exceptions to be passed through the retrying transaction handler.
 
Constructor Summary
FilesystemTransactionAdvice()
           
 
Method Summary
 TransactionService getTransactionService()
           
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 void setReadOnly(boolean readOnly)
           
 void setTransactionService(TransactionService transactionService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesystemTransactionAdvice

public FilesystemTransactionAdvice()
Method Detail

setReadOnly

public void setReadOnly(boolean readOnly)

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
                        throws java.io.IOException,
                               org.alfresco.jlan.smb.SMBException,
                               java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.io.IOException
org.alfresco.jlan.smb.SMBException
java.lang.Throwable

setTransactionService

public void setTransactionService(TransactionService transactionService)

getTransactionService

public TransactionService getTransactionService()


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