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:
Serializable, InvocationHandler, RepositoryConnection
Direct Known Subclasses:
CachingRepositoryInstanceHandler, LocalRepositoryInstanceHandler

public class RepositoryInstanceHandler
extends Object
implements InvocationHandler, RepositoryConnection, Serializable

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
static Object NULL
           
 
Constructor Summary
RepositoryInstanceHandler(Repository repository)
           
RepositoryInstanceHandler(Repository repository, RepositoryExceptionHandler exceptionHandler)
           
 
Method Summary
 void close()
           
 RepositoryExceptionHandler getExceptionHandler()
           
 RepositoryInstance getProxy()
           
 Class<?>[] getProxyInterfaces()
           
 Repository getRepository()
           
 CoreSession getSession()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 Object writeReplace()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final 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 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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.