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