org.nuxeo.ecm.core.api.repository
Class RepositoryInstanceHandler
java.lang.Object
org.nuxeo.ecm.core.api.repository.RepositoryInstanceHandler
- All Implemented Interfaces:
- Serializable, InvocationHandler, RepositoryConnection
- Direct Known Subclasses:
- CachingRepositoryInstanceHandler, LocalRepositoryInstanceHandler
public class RepositoryInstanceHandler
- extends Object
- implements InvocationHandler, RepositoryConnection, Serializable
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
NULL
public static final Object NULL
RepositoryInstanceHandler
public RepositoryInstanceHandler(Repository repository,
RepositoryExceptionHandler exceptionHandler)
RepositoryInstanceHandler
public RepositoryInstanceHandler(Repository repository)
getExceptionHandler
public RepositoryExceptionHandler getExceptionHandler()
getProxy
public RepositoryInstance getProxy()
getProxyInterfaces
public Class<?>[] getProxyInterfaces()
getRepository
public Repository getRepository()
- Specified by:
getRepository
in interface RepositoryConnection
getSession
public CoreSession getSession()
throws Exception
- Specified by:
getSession
in interface RepositoryConnection
- Returns:
- the session.
- Throws:
Exception
close
public void close()
throws Exception
- Specified by:
close
in interface RepositoryConnection
- Throws:
Exception
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
writeReplace
public Object writeReplace()
throws ObjectStreamException
- Throws:
ObjectStreamException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.