Package org.alfresco.filesys.repo
Class FilesystemTransactionAdvice
java.lang.Object
org.alfresco.filesys.repo.FilesystemTransactionAdvice
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class FilesystemTransactionAdvice
extends 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)
- See Also:
-
DiskInterfaceorg.alfresco.filesys.alfresco.IOControlHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA wrapper for checked exceptions to be passed through the retrying transaction handler. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(org.aopalliance.intercept.MethodInvocation methodInvocation) voidsetReadOnly(boolean readOnly) voidsetTransactionService(TransactionService transactionService)
-
Constructor Details
-
FilesystemTransactionAdvice
public FilesystemTransactionAdvice()
-
-
Method Details
-
setReadOnly
public void setReadOnly(boolean readOnly) -
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws IOException, org.alfresco.jlan.smb.SMBException, Throwable - Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
IOExceptionorg.alfresco.jlan.smb.SMBExceptionThrowable
-
setTransactionService
-
getTransactionService
-