Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api.repository
Class RepositoryInstanceHandler

java.lang.Object
  extended by 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
           
 
Constructor Summary
RepositoryInstanceHandler(Repository repository)
           
RepositoryInstanceHandler(Repository repository, RepositoryExceptionHandler exceptionHandler)
           
 
Method Summary
 void close()
           
 RepositoryExceptionHandler getExceptionHandler()
           
 RepositoryInstance getProxy()
           
 java.lang.Class<?>[] getProxyInterfaces()
           
 Repository getRepository()
           
 CoreSession getSession()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 java.lang.Object writeReplace()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final java.lang.Object NULL
Constructor Detail

RepositoryInstanceHandler

public RepositoryInstanceHandler(Repository repository,
                                 RepositoryExceptionHandler exceptionHandler)

RepositoryInstanceHandler

public RepositoryInstanceHandler(Repository repository)
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.